code: def general_index_error(
      index_file_contents,
      tar_file_path="db/webdataset/MNIST/devel-0.tar",
      ext="jpg",
  ):
      index_file = tempfile.NamedTemporaryFile()
      index_file.write(index_file_contents)
      index_file.flush()
      webdataset_pipeline = base.webdataset_raw_pipeline(
          os.path.join(get_dali_extra_path(), tar_file_path),
          index_file.name,
          ext,
          batch_size=1,
          device_id=0,
          num_threads=1,
      )
      webdataset_pipeline.build()
      webdataset_pipeline.run()
      webdataset_pipeline.run()
  
file_path: DALI/dali/test/python/reader/test_webdataset_corner.py
imports: import math
  import nvidia.dali
  import os
  import tempfile
  from glob import glob
  from nose.tools import assert_equal
  import webdataset_base
  from nose_utils import assert_raises
  from test_utils import compare_pipelines, get_dali_extra_path
label_desc: Use image node_id 9 for calling a global function with example usage: general_index_error(index_file_contents, tar_file_path, ext) without return types