code: def list(
      filter: str = typer.Option(
          None, "--filter", "-f", help=example_help.get("filter")
      )
  ):
      """List all available RLlib examples that can be run from the command line.
      Note that many of these examples require specific hardware (e.g. a certain number
      of GPUs) to work.\n\n
  
      Example usage: `rllib example list --filter=cartpole`
      """
  
      table = Table(title="RLlib Examples")
      table.add_column(
          "Example ID", justify="left", style="cyan", no_wrap=True
      )
      table.add_column("Description", justify="left", style="magenta")
  
      sorted_examples = collections.OrderedDict(
          sorted(EXAMPLES.items())
      )
  
      for name, value in sorted_examples.items():
          if filter:
              if filter.lower() in name:
                  table.add_row(name, value["description"])
          else:
              table.add_row(name, value["description"])
  
      console = Console()
      console.print(table)
      console.print(
          "Run any RLlib example as using 'rllib example run <Example ID>'."
          "See 'rllib example run --help' for more information."
      )
  
file_path: ray/rllib/scripts.py
imports: import collections
  from rich.console import Console
  from rich.table import Table
  import typer
  from ray.rllib import train
  from ray.rllib.common import CLIArguments
  from ray.rllib.common import EXAMPLES, FrameworkEnum, example_help, download_example_file
label_desc: Use image node_id 3 for calling a global function with example usage: list(filter) without return types