def METHOD_NAME():
    parser = argparse.ArgumentParser()
    parser.add_argument("--ark", required=True, help="Indexed ARK data file.")
    parser.add_argument(
        "--txt",
        help=(
            "Indexed target text data file "
            "(must set it to align source and target files)."
        ),
    )
    parser.add_argument(
        "--out",
        required=True,
        help="Output files prefix (will be suffixed by .records and .txt).",
    )
    parser.add_argument(
        "--compression_type",
        default=None,
        choices=["GZIP"],
        help="Optional compression type.",
    )
    args = parser.parse_args()
    if args.txt:
        ark_to_records_aligned(
            args.ark, args.txt, args.out, compression_type=args.compression_type
        )
    else:
        ark_to_records(args.ark, args.out, compression_type=args.compression_type)