code: def test_non_uniform_batch():
      batches_disallowed = [
          [test_array, np.array([[42, 42]], dtype=np.uint8)],
          non_uniform_tl(),
      ]
      for b in batches_disallowed:
          yield raises(
              ValueError,
              "Uniform input is required (batch of tensors of equal shapes)",
          )(external_source_impl.batch_to_numpy), b
  
file_path: DALI/dali/test/python/test_external_source_impl_utils.py
imports: from nvidia.dali._utils import external_source_impl
  from nvidia.dali import tensors, pipeline_def
  import nvidia.dali.fn
  from nose.tools import assert_equals
  from nose_utils import raises
  from nose.plugins.attrib import attr
  import numpy
label_desc: Use image node_id 6 for calling a global function with example usage: test_non_uniform_batch() without return types