code: def list(
      address: Optional[str],
      headers: Optional[str],
      verify: Union[bool, str],
  ):
      """Lists all running jobs and their information.
  
      Example:
          `ray job list`
      """
      client = _get_sdk_client(address, headers=headers, verify=verify)
      # Set no_format to True because the logs may have unescaped "{" and "}"
      # and the CLILogger calls str.format().
      cli_logger.print(
          pprint.pformat(client.list_jobs()), no_format=True
      )
  
imports: import json
  import os
  import sys
  import pprint
  import time
  from subprocess import list2cmdline
  from typing import Optional, Tuple, Union, Dict, Any
  import click
  import ray._private.ray_constants
  from ray._private.storage import _load_class
  from ray._private.utils import get_or_create_event_loop
  from ray.autoscaler._private.cli_logger import add_click_logging_options, cf, cli_logger
  from ray.dashboard.modules.dashboard_sdk import parse_runtime_env_args
  from ray.job_submission import JobStatus, JobSubmissionClient
  from ray.dashboard.modules.job.cli_utils import add_common_job_options
  from ray.dashboard.modules.job.utils import redact_url_password
  from ray.util.annotations import PublicAPI
  from ray._private.utils import parse_resources_json, parse_metadata_json
label_desc: Use image node_id 12 for calling a global function with example usage: list(address, headers, verify) without return types