code: def check_for_running_batches():
      yield
      with BatchClient("") as bc:
          for id in submitted_batch_ids:
              b = bc.get_batch(id)
              tries = 1
              while True:
                  if b.status()["state"] != "running":
                      break
                  print(f"batch {b.id} is still running")
                  tries += 1
                  sync_sleep_before_try(tries)
  
imports: import asyncio
  import time
  import pytest
  from hailtop.batch import BatchPoolExecutor, ServiceBackend
  from hailtop.config import get_user_config
  from hailtop.utils import sync_sleep_before_try
  from hailtop.batch_client.client import BatchClient
label_desc: Use image node_id 2 for calling a global function with example usage: check_for_running_batches() without return types