code: def to_tensor_list_gpu(data):
      @pipeline_def(
          batch_size=len(data),
          num_threads=4,
          device_id=0,
          prefetch_queue_depth=1,
      )
      def convert_pipe():
          return fn.external_source(source=[data], device="gpu")
  
      pipe = convert_pipe()
      pipe.build()
      (out,) = pipe.run()
      return out
  
imports: import random
  import nvidia.dali.fn
  import nvidia.dali.ops
  import nvidia.dali.types
  import numpy
  from nvidia.dali import Pipeline, pipeline_def
  from test_utils import check_batch
  from nose_utils import raises, assert_warns, assert_raises
  from nvidia.dali.types import DALIDataType
  from numpy.random import default_rng
label_desc: Use image node_id 32 for calling a global function with example usage: to_tensor_list_gpu(data) and returns: out, fn