code: def tfr_properties(root_path, index_path, device):
      import nvidia.dali.tfrecord as tfrec
  
      features = {
          "image/encoded": tfrec.FixedLenFeature((), tfrec.string, ""),
          "image/class/label": tfrec.FixedLenFeature(
              [1], tfrec.int64, -1
          ),
      }
      inputs = fn.readers.tfrecord(
          path=root_path, index_path=index_path, features=features
      )
      enc = fn.get_property(inputs["image/encoded"], key="source_info")
      lab = fn.get_property(
          inputs["image/class/label"], key="source_info"
      )
      if device == "gpu":
          enc = enc.gpu()
          lab = lab.gpu()
      return enc, lab
  
imports: from nvidia.dali import pipeline_def
  import os
  import numpy
  from nvidia.dali import fn
  from test_utils import get_dali_extra_path
  from nose_utils import raises
  import tempfile
label_desc: Use image node_id 9 for calling a global function with example usage: tfr_properties(root_path, index_path, device) and returns: enc,  lab