code: def test_pytorch_containers():
      import torch
  
      samples_cpu = [
          (torch.tensor(test_array), test_array),
      ]
      batches_cpu = [
          ([torch.tensor(test_array)], [test_array]),
          ([torch.tensor(test_array)] * 4, [test_array] * 4),
      ]
      disallowed_samples = [
          torch.tensor(test_array).cuda(),
      ]
      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 7 for calling a global function with example usage: test_pytorch_containers() without return types