def METHOD_NAME():
    if sys.version_info >= (3, 11):
        raise RuntimeError("Python versions 3.11 and above are not yet supported. Please use Python 3.8, 3.9 or 3.10.")
    if sys.version_info < (3, 8):
        raise RuntimeError("Python versions 3.7 and below are not supported. Please use Python 3.8, 3.9 or 3.10")
    parser = argparse.ArgumentParser()
    parser.add_argument("--workspace", "-m", type=str, help="WORKSPACE folder", required=True)
    parser.add_argument("--fed_client", "-s", type=str, help="client config json file", required=True)
    parser.add_argument("--set", metavar="KEY=VALUE", nargs="*")
    parser.add_argument("--local_rank", type=int, default=0)
    args = parser.parse_args()
    kv_list = parse_vars(args.set)
    config_folder = kv_list.get("config_folder", "")
    if config_folder == "":
        args.client_config = JobConstants.CLIENT_JOB_CONFIG
    else:
        args.client_config = os.path.join(config_folder, JobConstants.CLIENT_JOB_CONFIG)
    # TODO:: remove env and train config since they are not core
    args.env = os.path.join("config", AppFolderConstants.CONFIG_ENV)
    args.train_config = os.path.join("config", AppFolderConstants.CONFIG_TRAIN)
    args.log_config = None
    args.job_id = None
    workspace = Workspace(root_dir=args.workspace)
    for name in [WorkspaceConstants.RESTART_FILE, WorkspaceConstants.SHUTDOWN_FILE]:
        try:
            f = workspace.get_file_path_in_root(name)
            if os.path.exists(f):
                os.remove(f)
        except Exception:
            print("Could not remove the {} file.  Please check your system before starting FL.".format(name))
            sys.exit(-1)
    rank = args.local_rank
    try:
        os.chdir(args.workspace)
        fobs_initialize()
        conf = FLClientStarterConfiger(
            workspace=workspace,
            args=args,
            kv_list=args.set,
        )
        conf.configure()
        log_file = workspace.get_log_file_path()
        add_logfile_handler(log_file)
        deployer = conf.base_deployer
        security_init(
            secure_train=deployer.secure_train,
            site_org=conf.site_org,
            workspace=workspace,
            app_validator=conf.app_validator,
            site_type=SiteType.CLIENT,
        )
        # initialize Privacy Service
        privacy_manager = create_privacy_manager(workspace, names_only=True)
        PrivacyService.initialize(privacy_manager)
        federated_client = deployer.create_fed_client(args)
        federated_client.start_overseer_agent()
        while not federated_client.sp_established:
            print("Waiting for SP....")
            time.sleep(1.0)
        federated_client.use_gpu = False
        federated_client.config_folder = config_folder
        while federated_client.cell is None:
            print("Waiting client cell to be created ....")
            time.sleep(1.0)
        federated_client.register()
        if not federated_client.token:
            print("The client could not register to server. ")
            raise RuntimeError("Login failed.")
        federated_client.start_heartbeat(interval=kv_list.get("heart_beat_interval", 10.0))
        admin_agent = create_admin_agent(
            deployer.req_processors,
            federated_client,
            args,
            rank,
        )
        while federated_client.status != ClientStatus.STOPPED:
            time.sleep(1.0)
        deployer.close()
    except ConfigError as e:
        print(f"ConfigError: {secure_format_exception(e)}")