code: def random_scalar_like_tensors_batch(nested_level):
      return [
          np.array(
              [np.random.randint(0, num_classes)], dtype=np.int32
          ).reshape((1,) * nested_level)
          for x in range(batch_size)
      ]
  
imports: from functools import partial
  from nvidia.dali.pipeline import Pipeline
  import nvidia.dali.ops
  import nvidia.dali.types
  from test_utils import check_batch
  from nose_utils import raises
  import numpy
label_desc: Use image node_id 6 for calling a global function with example usage: random_scalar_like_tensors_batch(nested_level) and returns: unknown