def METHOD_NAME():
    parser = argparse.ArgumentParser(
        description="translate P4Info for NP4 Intel")
    parser.add_argument('--p4info',
                        help='p4info protobuf in text format',
                        type=str, action="store", required=False,
                        default="p4info.txt")
    parser.add_argument('--p4info-out',
                        help='translated p4info protobuf in text format',
                        type=str, action="store", required=False,
                        default=None)
    parser.add_argument('--platform',
                        help='platform to transform (bmv2/np4)',
                        type=str, action="store", required=False,
                        default="np4")
    args, unknown_args = parser.parse_known_args()
    if not os.path.exists(args.p4info):
        error("P4Info file {} not found".format(args.p4info))
        sys.exit(1)
    if args.platform == "bmv2":
        p4info_out = "p4info_bmv2.txt"
    elif args.platform == "np4" or args.platform is None:
        p4info_out = "p4info_np4.txt"
    else:
        print("Invalid platform {}\n".format(args.platform))
        return -1
    if args.p4info_out is not None:
        p4info_out = args.p4info_out
    tr_p4info(platform=args.platform, p4info_path=args.p4info,
              p4info_out_path=p4info_out)