async def register_device(provisioning_device):
    """This function will register provisioning device
       and return registration effect

    Args:
        provisioning_device (ProvisioningDeviceClient):
                Client which can be used to run the registration of a device
                with provisioning service usingX509 authentication.

    Returns:
        RegistrationResult: indicating the result of the registration
    """

    registration_effect = await provisioning_device.register()
    return registration_effect