docs: def _format_notes(self, record):
          """
          Extracts notes from a record and reformats them in a simplified format.
          """
          notes = []
          for note in record["notes"]:
              if note.get("type"):
                  n = {}
                  n["type"] = note["type"]
                  try:
                      if note["jsonmodel_type"] == "note_singlepart":
                          n["content"] = note["content"][0]
                      else:
                          n["content"] = note["subnotes"][0]["content"]
                  except (IndexError, KeyError):
                      n["content"] = ""
  
                  notes.append(n)
  
          return notes