code: def test_memory_consumption():
      for device in ["cpu", "gpu"]:
          for test_case in [
              "no_copy_sample",
              "copy_sample",
              "copy_batch",
          ]:
              yield _test_memory_consumption, device, test_case
  
file_path: DALI/dali/test/python/test_external_source_cupy.py
imports: from nose.plugins.attrib import attr
  from test_external_source_impl import *
  from test_external_source_impl import use_cupy
  from test_utils import check_output, check_output_pattern
  import nvidia.dali
  from nvidia.dali import Pipeline, pipeline_def
  import nvidia.dali.fn
  from nvidia.dali.tensors import TensorGPU
  import numpy
  import cupy
label_desc: Use image node_id 6 for calling a global function with example usage: test_memory_consumption() without return types