code: def test_mxnet_containers():
      import mxnet as mx
  
      samples_cpu = [
          (mx.nd.array(test_array), test_array),
      ]
      batches_cpu = [
          ([mx.nd.array(test_array)], [test_array]),
          ([mx.nd.array(test_array)] * 4, [test_array] * 4),
      ]
      disallowed_samples = [mx.nd.array(test_array, ctx=mx.gpu(0))]
      yield from run_checks(
          samples_cpu, batches_cpu, disallowed_samples, []
      )
  
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 8 for calling a global function with example usage: test_mxnet_containers() without return types