code: def test_batch_size_of_one():
      """Try if BatchingTableQueue can be used to retrieve row-by-row data (batch size of 1)"""
      batches = [_new_record_batch([i]) for i in range(3)]
      table = pa.Table.from_batches(batches)
  
      batcher = BatchingTableQueue(1)
      batcher.put(table)
  
      for _ in range(3):
          assert not batcher.empty()
          next_batch = batcher.get()
          assert 1 == next_batch.num_rows
  
      assert batcher.empty()
  
file_path: petastorm/petastorm/pyarrow_helpers/tests/test_batch_buffer.py
imports: import numpy
  import pyarrow
  from petastorm.pyarrow_helpers.batching_table_queue import BatchingTableQueue
label_desc: Use image node_id 5 for calling a global function with example usage: test_batch_size_of_one() without return types