def parsed_data(provides, data):
    """ Function that parse data.

    :param provides: action name
    :param data: response data
    :return: parsed response
    """

    boolean_dict = {"True": "Yes", "False": "No"}
    if provides == "list patches":
        for item in data:
            try:
                item["IsDeployed"] = boolean_dict[item["IsDeployed"]]
                item["IsSuperseded"] = boolean_dict[item["IsSuperseded"]]
                item["IsExpired"] = boolean_dict[item["IsExpired"]]
            except ValueError:
                pass

    return data