code: def identity_pipe(use_copy_kernel, blocking):
      ins = (
          fn.external_source(
              name="numpy",
              device="cpu",
              use_copy_kernel=use_copy_kernel,
              blocking=blocking,
              cycle=False,
              cuda_stream=1,
              no_copy=True,
              batch=True,
              batch_info=False,
              parallel=False,
          ),
          fn.external_source(
              name="cupy",
              device="gpu",
              use_copy_kernel=use_copy_kernel,
              blocking=blocking,
              cycle=False,
              cuda_stream=1,
              no_copy=True,
              batch=True,
              batch_info=False,
              parallel=False,
          ),
          fn.external_source(
              name="torch_cpu",
              device="cpu",
              use_copy_kernel=use_copy_kernel,
              blocking=blocking,
              cycle=False,
              cuda_stream=1,
              no_copy=True,
              batch=True,
              batch_info=False,
              parallel=False,
          ),
          fn.external_source(
              name="torch_gpu",
              device="gpu",
              use_copy_kernel=use_copy_kernel,
              blocking=blocking,
              cycle=False,
              cuda_stream=1,
              no_copy=True,
              batch=True,
              batch_info=False,
              parallel=False,
          ),
          fn.external_source(
              name="tensor_cpu",
              device="cpu",
              use_copy_kernel=use_copy_kernel,
              blocking=blocking,
              cycle=False,
              cuda_stream=1,
              no_copy=True,
              batch=True,
              batch_info=False,
              parallel=False,
          ),
          fn.external_source(
              name="tensor_gpu",
              device="gpu",
              use_copy_kernel=use_copy_kernel,
              blocking=blocking,
              cycle=False,
              cuda_stream=1,
              no_copy=True,
              batch=True,
              batch_info=False,
              parallel=False,
          ),
          fn.external_source(
              name="list_cpu",
              device="cpu",
              use_copy_kernel=use_copy_kernel,
              blocking=blocking,
              cycle=False,
              cuda_stream=1,
              no_copy=True,
              batch=True,
              batch_info=False,
              parallel=False,
          ),
      )
      return tuple(i.gpu() for i in ins)
  
file_path: DALI/dali/test/python/test_pipeline_inputs.py
imports: import numpy
  import nvidia.dali.fn
  from nose.plugins.attrib import attr
  from nose2.tools import params
  from numpy.random import default_rng
  from nvidia.dali import pipeline_def
  from nvidia.dali.tensors import TensorCPU, TensorGPU
  from nose_utils import raises
  from test_utils import to_array
label_desc: Use image node_id 1 for calling a global function with example usage: identity_pipe(use_copy_kernel, blocking) and returns: tuple