code: def parse_ipp_file(filename):
      print(filename)
      with open(filename) as a:
          lines = a.readlines()
      data = {}
      i = 0
      while i < len(lines):
          line = lines[i]
          m = HEADER_REGEX.search(line)
          if m:
              d = int(m.group(1))
              n = int(m.group(2))
              print(f"d = {d}, n = {n}")
              cdata = []
              i += 1
              line = lines[i]
              # Skip comments
              while CXX_COMMENT.match(line):
                  i += 1
                  line = lines[i]
              while DATA_REGEX.match(line):
                  cdata.append(_raw_data(line))
                  i += 1
                  line = lines[i]
                  # Skip comments
                  while CXX_COMMENT.match(line):
                      i += 1
                      line = lines[i]
              if not len(cdata) == n:
                  raise ValueError(
                      f"parsed data: {len(cdata)}, expected {n}"
                  )
              data[m.group(3)] = cdata
          else:
              i += 1
  
      return data
  
imports: import re
  import os
label_desc: Use image node_id 2 for calling a global function with example usage: parse_ipp_file(filename) and returns: data