def METHOD_NAME():
    FLAGS = parse_args()
    cfg = load_config(FLAGS.config)
    merge_config(FLAGS.opt)
    # disable npu in config by default
    if 'use_npu' not in cfg:
        cfg.use_npu = False
    # disable xpu in config by default
    if 'use_xpu' not in cfg:
        cfg.use_xpu = False
    if 'use_gpu' not in cfg:
        cfg.use_gpu = False
    # disable mlu in config by default
    if 'use_mlu' not in cfg:
        cfg.use_mlu = False
    if cfg.use_gpu:
        place = paddle.set_device('gpu')
    elif cfg.use_npu:
        place = paddle.set_device('npu')
    elif cfg.use_xpu:
        place = paddle.set_device('xpu')
    elif cfg.use_mlu:
        place = paddle.set_device('mlu')
    else:
        place = paddle.set_device('cpu')
    check_config(cfg)
    check_gpu(cfg.use_gpu)
    check_npu(cfg.use_npu)
    check_xpu(cfg.use_xpu)
    check_mlu(cfg.use_mlu)
    check_version()
    run(FLAGS, cfg)