code: def process_key_dict(self, key, d, level):
          
  
          # add any composite level comments
          comments = d.get("__comments__", {})
          lines = []
          self._add_type_comment(level, comments, lines)
  
          lines += [self.add_start_line(key, level)]
          lines += self.process_dict(d, level, comments)
          lines.append(self.add_end_line(level, 1, key))
  
          return lines
docs: Process key value dicts e.g. METADATA "key" "value"