import json


def _getMistakesMade(row):
    """
    Parse the notes column of the VHP dataset to extract the mistakes made section.

    GIVEN:
      row (str)         a str representation of a JSON dictionary

    RETURN
      mistakes (str)    the mistakes made section
    """
    notes = json.loads(row)
    mistakes = notes["mistakes"]

    if type(mistakes) == dict:
        mistakes = mistakes["answer"]
    elif type(mistakes) == str:
        mistakes = mistakes.split("\nanswer: |")[1]

    if mistakes is None:
        return ""

    return mistakes