code: def _test_tfr_properties(device):
      root_path = os.path.join(
          get_dali_extra_path(), "db", "tfrecord", "train"
      )
      index_path = os.path.join(
          get_dali_extra_path(), "db", "tfrecord", "train.idx"
      )
      idx = [
          0,
          171504,
          553687,
          651500,
          820966,
          1142396,
          1380096,
          1532947,
      ]
      p = tfr_properties(
          root_path,
          index_path,
          device,
          batch_size=8,
          num_threads=4,
          device_id=0,
      )
      p.build()
      output = p.run()
      for out in output:
          out = out if device == "cpu" else out.as_cpu()
          for source_info, ref_idx in zip(out, idx):
              assert (
                  _uint8_tensor_to_string(source_info)
                  == f"{root_path} at index {ref_idx}"
              )
  
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 10 for calling a global function with example usage: _test_tfr_properties(device) without return types