def batch(self, client=None):
        client = self._require_client(client)
        return Batch(self, client)
set up the test in class level
dataset/ETHPy150Open GoogleCloudPlatform/gcloud-python/gcloud/logging/logger.py/Logger.batch--crossover with--dataset/ETHPy150Open eoyilmaz/anima/tests/env/test_environmentBase.py/EnvironmentBaseTestCase.setUpClass