code: def test_batch(ray_start_regular_shared):
      q = Queue(1)
  
      with pytest.raises(Full):
          q.put_nowait_batch([1, 2])
  
      with pytest.raises(Empty):
          q.get_nowait_batch(1)
  
      big_q = Queue(100)
      big_q.put_nowait_batch(list(range(100)))
      assert big_q.get_nowait_batch(100) == list(range(100))
  
file_path: ray/python/ray/tests/test_queue.py
imports: import pytest
  import time
  import ray
  from ray.exceptions import GetTimeoutError, RayActorError
  from ray.util.queue import Queue, Empty, Full
  from ray._private.test_utils import wait_for_condition, BatchQueue
label_desc: Use image node_id 8 for calling a global function with example usage: test_batch(ray_start_regular_shared) without return types