@staticmethod<EOL><INDENT>def create_batchai_client(preparer):<DEDENT>
try:<EOL><INDENT>from custom_client import create as create_custom_client<EOL>return create_custom_client()<EOL><DEDENT>except ImportError:<EOL><INDENT>return preparer.create_mgmt_client(BatchAIManagementClient)<EOL><DEDENT>
Creates a Batch AI management client for tests.

        To create a custom version of the client (e.g. for integration environment), create
        custom_client.py file with create() method returning the instance of the client.

        :param AzureMgmtPreparer preparer: an instance of AzureMgmtPreparer
        :returns BatchAIManagementClient: an instance of Batch AI management client