code: def test_no_parents_allowed_in_other_batches(client):
      b1 = create_batch(client)
      b2 = create_batch(client)
      head = b1.create_job(DOCKER_ROOT_IMAGE, command=["echo", "head"])
      try:
          b2.create_job(
              DOCKER_ROOT_IMAGE,
              command=["echo", "tail"],
              parents=[head],
          )
      except ValueError as err:
          assert re.search("parents from another batch", str(err))
          return
      assert False
  
imports: import asyncio
  import os
  import re
  import secrets
  import pytest
  from aiohttp import web
  from hailtop.batch_client import aioclient
  from hailtop.batch_client.client import BatchClient, Job
  from .utils import DOCKER_ROOT_IMAGE, batch_status_job_counter, create_batch, legacy_batch_status
label_desc: Use image node_id 7 for calling a global function with example usage: test_no_parents_allowed_in_other_batches(client) without return types