def METHOD_NAME(company):
    # Will only add default GST accounts if present
    input_account_names = ["Input Tax CGST", "Input Tax SGST", "Input Tax IGST"]
    output_account_names = ["Output Tax CGST", "Output Tax SGST", "Output Tax IGST"]
    rcm_accounts = ["Input Tax CGST RCM", "Input Tax SGST RCM", "Input Tax IGST RCM"]
    gst_settings = frappe.get_single("GST Settings")
    existing_account_list = []
    for account in gst_settings.get("gst_accounts"):
        for key in ["cgst_account", "sgst_account", "igst_account"]:
            existing_account_list.append(account.get(key))
    gst_accounts = frappe._dict(
        frappe.get_all(
            "Account",
            {
                "company": company,
                "account_name": (
                    "in",
                    input_account_names + output_account_names + rcm_accounts,
                ),
            },
            ["account_name", "name"],
            as_list=1,
        )
    )
    add_accounts_in_gst_settings(
        company,
        input_account_names,
        gst_accounts,
        existing_account_list,
        gst_settings,
        "Input",
    )
    add_accounts_in_gst_settings(
        company,
        output_account_names,
        gst_accounts,
        existing_account_list,
        gst_settings,
        "Output",
    )
    add_accounts_in_gst_settings(
        company,
        rcm_accounts,
        gst_accounts,
        existing_account_list,
        gst_settings,
        "Reverse Charge",
    )
    # Ignore mandatory during install, some values may not be set by post install patch
    if frappe.flags.in_install:
        gst_settings.flags.ignore_mandatory = True
    gst_settings.save()