code: def wds_properties(root_path, device, idx_paths):
      read = fn.readers.webdataset(
          paths=[root_path], index_paths=idx_paths, ext=["jpg"]
      )
      if device == "gpu":
          read = read.gpu()
      return fn.get_property(read, key="source_info")
  
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 5 for calling a global function with example usage: wds_properties(root_path, device, idx_paths) and returns: fn