code: def test_rebatching_queue_single_enqueue_dequeue(self):
      net = core.Net("net")
  
      tensors = [
          net.ConstantFill([], 1, value=1.0, run_once=False)
          for times in range(3)
      ]
  
      queue = net.CreateRebatchingQueue([], 1, capacity=10, num_blobs=1)
  
      net.EnqueueRebatchingQueue([queue, tensors[0]], [])
      net.EnqueueRebatchingQueue([queue, tensors[1]], [])
      net.EnqueueRebatchingQueue([queue, tensors[2]], [])
  
      results = [
          net.DequeueRebatchingQueue([queue], 1),
          net.DequeueRebatchingQueue([queue], 1),
          net.DequeueRebatchingQueue([queue], 1),
      ]
  
      workspace.RunNetOnce(net)
  
      for idx in range(3):
          self.assertEqual(workspace.FetchBlob(results[idx]), [1.0])
  
file_path: pytorch/caffe2/python/operator_test/rebatching_queue_test.py
imports: from caffe2.python import core, workspace
  from caffe2.python.test_util import TestCase
  import numpy
  import numpy.testing
  from hypothesis import given, settings
  import hypothesis.strategies
  import functools
label_desc: Use image node_id 1 for calling the TestReBatchingQueue obj's underlying member method code with example usage: obj.test_rebatching_queue_single_enqueue_dequeue() without return types