code: def generate_wds_index(root_path, index_path):
      from wds2idx import IndexCreator
  
      with IndexCreator(root_path, index_path) as ic:
          ic.create_index()
  
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 6 for calling a global function with example usage: generate_wds_index(root_path, index_path) without return types