code: def legacy_batch_status(batch):
      status = batch.status()
      status["jobs"] = list(batch.jobs())
      return status
  
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 5 for calling a global function with example usage: legacy_batch_status(batch) and returns: status