code: def test_pinned_input_hw_decoder():
      file_root = os.path.join(test_data_root, good_path, "jpeg")
  
      @pipeline_def(batch_size=128, device_id=0, num_threads=4)
      def pipe():
          encoded, _ = fn.readers.file(file_root=file_root)
          encoded_gpu = encoded.gpu()
          # encoded.gpu() should make encoded pinned
          decoded = fn.decoders.image(encoded, device="mixed")
          return decoded, encoded_gpu
  
      p = pipe()
      p.build()
      p.run()
  
imports: import glob
  import math
  import numpy
  import nvidia.dali.backend
  import nvidia.dali.fn
  import nvidia.dali.types
  import os
  import random
  from nvidia.dali import pipeline_def
  from nose2.tools import params
  from nose_utils import assert_raises
  from test_utils import check_output_pattern
  from test_utils import compare_pipelines
  from test_utils import get_dali_extra_path
  from test_utils import to_array
label_desc: Use image node_id 30 for calling a global function with example usage: test_pinned_input_hw_decoder() and returns: decoded,  encoded_gpu