code: def get_cli_args():
      """Create CLI parser and return parsed arguments"""
      parser = argparse.ArgumentParser()
      parser.add_argument(
          "--framework",
          choices=["tf", "tf2", "torch"],
          default="torch",
          help="The DL framework specifier.",
      )
      parser.add_argument("--num-cpus", type=int, default=0)
      parser.add_argument(
          "--from-checkpoint",
          type=str,
          default=None,
          help="Full path to a checkpoint file for restoring a previously saved "
          "Algorithm state.",
      )
      parser.add_argument(
          "--env",
          type=str,
          default="markov_soccer",
          choices=["markov_soccer", "connect_four"],
      )
      parser.add_argument(
          "--stop-iters",
          type=int,
          default=1000,
          help="Number of iterations to train.",
      )
      parser.add_argument(
          "--stop-timesteps",
          type=int,
          default=10000000,
          help="Number of timesteps to train.",
      )
      parser.add_argument(
          "--win-rate-threshold",
          type=float,
          default=0.85,
          help="Win-rate at which we setup another opponent by freezing the "
          "current main policy and playing against a uniform distribution "
          "of previously frozen 'main's from here on.",
      )
      parser.add_argument(
          "--num-episodes-human-play",
          type=int,
          default=10,
          help="How many episodes to play against the user on the command "
          "line after training has finished.",
      )
      args = parser.parse_args()
      print(f"Running with following CLI args: {args}")
      return args
  
imports: import argparse
  import os
  import re
  import numpy
  import ray
  from ray import air, tune
  from ray.rllib.algorithms.callbacks import DefaultCallbacks
  from ray.rllib.algorithms.ppo import PPOConfig
  from ray.rllib.env.utils import try_import_pyspiel, try_import_open_spiel
  from ray.rllib.env.wrappers.open_spiel import OpenSpielEnv
  from ray.rllib.examples.policy.random_policy import RandomPolicy
  from ray.rllib.examples.self_play_with_open_spiel import ask_user_for_action
  from ray.rllib.policy.policy import PolicySpec
  from ray.tune import register_env
  from open_spiel.python.rl_environment import Environment
label_desc: Use image node_id 1 for calling a global function with example usage: get_cli_args() and returns: args