async def METHOD_NAME(self):
    # Instantiate a DPS Service Client using a named key credential
    from azure.core.credentials import AzureNamedKeyCredential
    from azure.iot.deviceprovisioning.aio import DeviceProvisioningClient
    # Parse policy components from connection string parts
    policy_name = self.conn_str_parts["sharedaccesskeyname"]
    policy = self.conn_str_parts["sharedaccesskey"]
    # Create AzureNamedKeyCredential object
    credential = AzureNamedKeyCredential(name=policy_name, key=policy)
    dps_service_client = DeviceProvisioningClient(
        endpoint=self.endpoint, credential=credential
    )