code: def input_batch(num_dim):
      rng = np.random.default_rng(42)
      for batch_size in batch_sizes:
          yield [
              rng.random(rng.integers(low=0, high=50, size=num_dim))
              for _ in range(batch_size)
          ]
  
file_path: DALI/dali/test/python/operator_1/test_per_frame.py
imports: import numpy
  from nvidia.dali import pipeline_def
  import nvidia.dali.fn
  from test_utils import check_batch
  from nose_utils import raises
label_desc: Use image node_id 1 for calling a global function with example usage: input_batch(num_dim) without return types