def METHOD_NAME(formatted: dict, raw: dict) -> None:
    """Retrieves equivalent courses, if any, and puts their code in a dict with
    an arbitrary value (to make it hashable). For example, "DPST1091": 1"""
    formatted["equivalents"] = {}
    if not raw["eqivalents"]:
        # NB: handbook has typo 'eqivalents' for equivalents key for all courses
        return
    for equiv in raw["eqivalents"]:
        formatted["equivalents"][equiv["assoc_code"]] = 1