def METHOD_NAME() -> DeviceProvisioningClient:
    host_name, policy_name, key = (
        mock_dps_target["entity"],
        mock_dps_target["policy"],
        mock_dps_target["primarykey"],
    )
    creds = AzureNamedKeyCredential(policy_name, key)
    client = DeviceProvisioningClient(
        endpoint=f"https://{host_name}", credential=creds, authentication_policy=creds
    )
    return client