pub fn globalize_object<Y, E>(
    object_id: NodeId,
    owner_role: OwnerRole,
    address_reservation: GlobalAddressReservation,
    main_roles: RoleAssignmentInit,
    metadata: ModuleConfig<KeyValueStoreInit<String, GenericMetadataValue<UncheckedUrl, UncheckedOrigin>>>,
    api: &mut Y
) -> Result<GlobalAddress, E>
where Y: ClientApi<E>, E: Debug + ScryptoDecode,