code: def read_struct(fstream):
      
      line = fstream.readline().strip()
      fragments = line.split(",")
      fragments = [x for x in fragments if x is not None]
      partition = dict()
      if not len(fragments) >= 3:
          return None
  
      partition["struct"] = fragments[0]
      partition["info"] = fragments[1]
      partition["num_lines"] = fragments[2]
  
      struct = None
      if partition is not None and partition["struct"] == "STRUCT":
          num_lines = int(partition["num_lines"].strip())
          struct = {}
          for _ in range(num_lines):
              cols = fetch_cols(fstream)
              struct.update({cols[0]: cols[1:]})
      return struct
docs: Read a likwid struct from the text stream.
  
      Args:
          fstream: Likwid's filestream.
  
      Returns (dict(str: str)):
          A dict containing all likwid's struct info as key/value pairs.