def METHOD_NAME(args):
    master_handler = None
    master_addr = os.getenv(NodeEnv.DLROVER_MASTER_ADDR, "")
    use_dlrover_launch = False
    if args.standalone:
        master_handler, master_addr = _launch_dlrover_local_master()
        os.environ[NodeEnv.DLROVER_MASTER_ADDR] = master_addr
    if _check_dlrover_master_available(master_addr):
        GlobalMasterClient.MASTER_CLIENT = build_master_client(master_addr)
        use_dlrover_launch = True
    else:
        use_dlrover_launch = False
    if args.standalone and not use_dlrover_launch:
        args.rdzv_backend = "c10d"
        args.rdzv_endpoint = "localhost:29400"
        args.rdzv_id = str(uuid.uuid4())
        logger.info(
            f"\n**************************************\n"
            f"Rendezvous info:\n"
            f"--rdzv-backend={args.rdzv_backend} "
            f"--rdzv-endpoint={args.rdzv_endpoint} "
            f"--rdzv-id={args.rdzv_id}\n"
            f"**************************************\n"
        )
    config, cmd, cmd_args = config_from_args(args)
    setattr(config, "network_check", False)
    setattr(config, "node_unit", 1)
    if hasattr(args, "network_check"):
        config.network_check = args.network_check
    if hasattr(args, "node_unit"):
        config.rdzv_configs["node_unit"] = args.node_unit
    elastic_launch(
        config=config, entrypoint=cmd, use_dlrover_launch=use_dlrover_launch
    )(*cmd_args)
    if master_handler:
        master_handler.close()