code: def parse_args():
      parser = argparse.ArgumentParser(
          formatter_class=argparse.ArgumentDefaultsHelpFormatter,
          description="Create an index file from .rec file",
      )
      parser.add_argument("record", help="path to .rec file.")
      parser.add_argument("index", help="path to index file.")
      args = parser.parse_args()
      args.record = os.path.abspath(args.record)
      args.index = os.path.abspath(args.index)
      return args
  
file_path: DALI/tools/rec2idx.py
imports: import os
  import time
  import ctypes
  from mxnet.base import _LIB
  from mxnet.base import check_call
  import mxnet
  import argparse
label_desc: Use image node_id 1 for calling a global function with example usage: parse_args() and returns: args