code: def testDynamicBatchSizeIndicator(self):
      # Test that -1 and 0 are equivalent.
      frame_size, patch_size, batch_size, n_batches = 1, 3, 3, 3
      expected_batch_shape = [
          n_batches * batch_size,
          1,
          patch_size,
          frame_size,
      ]
      n_samples = n_batches * batch_size * patch_size * frame_size
  
      for batch_shape in (-1, 0):
          shape = [batch_shape, 1, patch_size, frame_size]
          params = {"shape": shape, "lastPatchMode": "discard"}
  
          batches = self.streamingPipeline(n_samples, params)
  
          expected_n_batches = 1
          self.assertEqual(len(batches), expected_n_batches)
          for batch in batches:
              self.assertEqualVector(batch.shape, expected_batch_shape)
  
file_path: essentia/test/src/unittests/streaming/test_vectorrealtotensor.py
imports: from essentia_test import *
  from essentia.streaming import *
label_desc: Use image node_id 10 for calling the TestVectorRealToTensor obj's underlying member method code with example usage: obj.testDynamicBatchSizeIndicator() without return types