def METHOD_NAME(formatted: dict, raw: dict) -> None:
    """Retrieves course attributes and creates a dictionary containing
    the type of attribute and its description"""
    formatted["attributes"] = []
    if not raw["attributes"]:
        # Not all courses have attributes, so this might be an empty list
        return
    for attribute in raw["attributes"]:
        formatted["attributes"].append(
            {
                "type": attribute["code"],  # e.g. 'general_education'
                "description": attribute["description"],
            }
        )