def METHOD_NAME():
    import argparse
    parser = argparse.ArgumentParser()
    parser.add_argument(
        "-o", "--output", help="Path for saving output", type=str, default=None
    )
    parser.add_argument(
        "--gui-check",
        help="Check if Qt GUI widgets can be used",
        action="store_const",
        const=True,
        default=False,
    )
    args = parser.parse_args()
    if args.gui_check:
        gui_check()
    else:
        get_diagnostics(output_path=args.output)