fn globalize_package<Y>(
    package_address_reservation: Option<GlobalAddressReservation>,
    package_structure: PackageStructure,
    metadata: Own,
    role_assignment: RoleAssignment,
    api: &mut Y
) -> Result<PackageAddress, RuntimeError>