def parse_args():
    """
    Helper function parsing the command line options
    @retval ArgumentParser
    """
    parser = ArgumentParser(
        description="This is a script for auto apply ipex optimization."
        "\n################################# Basic usage ############################# \n"
        "\n 1. Apply ipex optimization with fp32 data type\n"
        "\n   >>> python -m intel_extension_for_pytorch.cpu.auto_ipex python_script args \n"
        "\n 2. Apply ipex optimization with bf16 data type\n"
        "\n   >>> python -m intel_extension_for_pytorch.cpu.auto_ipex --dtype bfloat16 python_script args \n",
        formatter_class=RawTextHelpFormatter,
    )

    add_auto_ipex_params(parser, auto_ipex_default_enabled=True)

    # positional
    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.parse_args()

    Helper function parsing the command line options
    @retval ArgumentParser
    
intel_extension_for_pytorch/cpu/auto_ipex.py