code: def generate_temp_extract(tar_file_path):
      temp_extract_dir = tempfile.TemporaryDirectory()
      archive = tarfile.open(tar_file_path)
      for member in archive:
          if member.type != tarfile.REGTYPE:
              continue
          archive.extract(member, temp_extract_dir.name)
      return temp_extract_dir
  
file_path: DALI/dali/test/python/webdataset_base.py
imports: from nvidia.dali import pipeline_def
  from nvidia.dali.fn import readers
  from nose.tools import assert_equal
  import tempfile
  from subprocess import call
  import os
  import tarfile
label_desc: Use image node_id 5 for calling a global function with example usage: generate_temp_extract(tar_file_path) and returns: temp_extract_dir