def METHOD_NAME():
    try:
        args = load_args()
        count_pkt = 0
        count_mat = 0
        pcap = rdpcap(args.pcap_file)
        print("#  -*- text -*-")
        print("#  ATTENTION: It was generated automatically, be careful! :)")
        if args.source:
            print("#  Based on {}".format(args.source))
        else:
            print("#  Based on {}".format(os.path.basename(args.pcap_file)))
        print("#")
        print("")
        print("proto {}".format(args.decode_proto))
        print("proto-dictionary {}".format(args.decode_proto))
        print("")
        count_mat += 2
        for pkt in pcap:
            # statements
            count_pkt += 1
            print("#")
            print("#  {}.".format(count_pkt))
            print("#")
            # get the payload description, remove '#' and trim() spaces.
            app = pkt.getlayer(3)
            packet_desc = app.show(dump=True, indent=1).replace("#", "")
            packet_desc = re.sub("^", "# ", packet_desc, flags=re.MULTILINE)
            packet_desc = re.sub(" $", "", packet_desc, flags=re.MULTILINE)
            print(packet_desc.strip())
            # Convert the payload to hex separated by space.
            payload = ""
            for d in app.build():
                payload += "{:02x} ".format(d)
            # trim the left/right
            payload = payload.strip()
            # lookup the attrs from the payload
            attrs = unit_lookup_payload2attrs(args.decode_proto, payload)
            if not attrs:
                raise Exception("Error", "Problems to convert the payload to attrs for: -p {} -f {}".format(args.decode_proto, args.pcap_file))
            if args.both:
                count_mat += 4
                print("encode-proto {}".format(attrs))
                print("match {}".format(payload))
                print("")
                print("decode-proto -")
                print("match {}".format(attrs))
                print("")
            else:
                count_mat += 2
                print("decode-proto {}".format(payload))
                print("match {}".format(attrs))
                print("")
        # append the 'count'
        print("count")
        print("match {}".format(count_mat))
        print("")
    except Exception as e:
        eprint("** ERROR: Something wrong:\n {}\n".format(str(e)))
        traceback.print_exc()
        sys.exit(-1)