code: def create_batch(
      client: Union[bc.BatchClient, aiobc.BatchClient], **kwargs
  ) -> Union[bc.Batch, aiobc.Batch]:
      name_of_test_method = inspect.stack()[1][3]
      attrs = kwargs.pop(
          "attributes", {}
      )  # Tests should be able to override the name
      attributes = {"name": name_of_test_method, **attrs}
      this_batch_id = os.environ.get("HAIL_BATCH_ID")
      this_job_id = os.environ.get("HAIL_JOB_ID")
      if this_batch_id and this_job_id:
          attributes["client_job"] = f"{this_batch_id}-{this_job_id}"
      return client.create_batch(attributes, **kwargs)
  
file_path: hail/batch/test/utils.py
imports: import inspect
  import os
  from typing import Union, overload
  import hailtop.batch_client.aioclient
  import hailtop.batch_client.client
  from hailtop import pip_version
label_desc: Use image node_id 3 for calling a global function with example usage: create_batch(client) and returns: client