def METHOD_NAME():
    parser = argparse.ArgumentParser(
        description="Reverting recommendations for a given project.")
    parser.add_argument(
        "--project_id",
        required=True,
        type=str,
        help="Enter project id for which you want the recommendation status.")
    parser.add_argument(
        "--service_account_file_path",
        required=True,
        type=str,
        help="Enter the location of service account key for the resources.")
    parser.add_argument(
        "--recommendation_to_be_reverted",
        required=True,
        type=str,
        help=
        "Enter the location of file containing the recommendations to be reverted."
    )
    parser.add_argument(
        "--to_json",
        type=str,
        nargs="?",
        default="",
        help="Enter the json file name to store the new policy change data.")
    parser.add_argument("--log",
                        type=str,
                        nargs="?",
                        default="INFO",
                        help="Enter the log level.")
    args = parser.parse_args()
    logging.basicConfig(format="%(levelname)s[%(asctime)s]:%(message)s",
                        level=args.log)
    credentials = service_account.Credentials.from_service_account_file(
        args.service_account_file_path, scopes=SCOPES)
    resourcemanager_v1 = build("cloudresourcemanager",
                               "v1",
                               credentials=credentials,
                               cache_discovery=False)
    recommender = build("recommender",
                        "v1",
                        credentials=credentials,
                        cache_discovery=False)
    old_policy = common.get_current_policy(resourcemanager_v1, args.project_id,
                                           credentials)
    recommendation_to_be_reverted = json.load(
        open(args.recommendation_to_be_reverted))
    new_policy, success_status = update_policy_to_revert_recommendations(
        old_policy, recommendation_to_be_reverted)
    logging.info("Applying the recommendation")
    common.update_policy(resourcemanager_v1, args.project_id, credentials,
                         new_policy)
    logging.info(
        "Diff between old policy and the new policy after reverting the recommendation "
    )
    logging.info(common.diff_between_policies(old_policy, new_policy))
    updated_recommendations = update_recommendation_status_after_revert(
        recommender, recommendation_to_be_reverted, success_status, credentials)
    if not args.to_json:
        logging.info(updated_recommendations)
    else:
        common.writefile(updated_recommendations, args.to_json)