def init_parser(parser):
    """
    Helper function parsing the command line options
    @retval ArgumentParser
    """

    # positional
    parser.add_argument(
        "--convert-fp64-to-fp32",
        "--convert_fp64_to_fp32",
        action="store_true",
        dest="convert_fp64_to_fp32",
        help="To automatically convert torch.float64(double) dtype to torch.float32",
    )
    parser.add_argument(
        "program",
        type=str,
        help="The full path to the proram/script to be launched. "
        "followed by all the arguments for the script",
    )

    # rest from the training program
    parser.add_argument("program_args", nargs=REMAINDER)
    return parser

    Helper function parsing the command line options
    @retval ArgumentParser
    
intel_extension_for_pytorch/xpu/launch.py