code: def loadfmap(fname):
      fmap = {}
      nmap = {}
  
      for l in open(fname):
          arr = l.split()
          if arr[0].find(".") != -1:
              idx = int(arr[0].strip("."))
              assert idx not in fmap
              fmap[idx] = {}
              ftype = arr[1].strip(":")
              content = arr[2]
          else:
              content = arr[0]
          for it in content.split(","):
              if it.strip() == "":
                  continue
              k, v = it.split("=")
              fmap[idx][v] = len(nmap)
              nmap[len(nmap)] = ftype + "=" + k
      return fmap, nmap
  
label_desc: Use image node_id 1 for calling a global function with example usage: loadfmap(fname) and returns: fmap,  nmap