code: def parseHeader(row):
      h = {}
      for index, field in enumerate(row.rstrip().split("\t")):
          if field in h:
              raise Exception(
                  "Probably corrupt input file, a duplicate field: '"
                  + field
                  + "'"
              )
          if index == 0:  # methodName is first field
              assert "MethodName" == field
          h[field] = index
      return h
  
file_path: nmslib/previous_releases_scripts/genplot.py
imports: import argparse
  import os
  import re
  import sys
  import itertools
  import re
  from subprocess import call
label_desc: Use image node_id 5 for calling a global function with example usage: parseHeader(row) and returns: h