def METHOD_NAME(self, method):
    self.script_client = self.create_mgmt_client(
        azure.mgmt.resource.DeploymentScriptsClient,
        api_version="2019-10-01-preview"
    )
    if self.is_live:
        from azure.mgmt.msi import ManagedServiceIdentityClient
        self.msi_client = self.create_mgmt_client(
            ManagedServiceIdentityClient
        )