code: def list_runs(
      ctx: Context,
      engine: str,
      pipeline_name: str,
      endpoint: str,
      iap_client_id: str,
      namespace: str,
  ) -> None:
      """Command definition to list all runs of a pipeline."""
      click.echo("Listing all runs of pipeline: " + pipeline_name)
      ctx.flags_dict[labels.ENGINE_FLAG] = engine
      ctx.flags_dict[labels.PIPELINE_NAME] = pipeline_name
      ctx.flags_dict[labels.ENDPOINT] = endpoint
      ctx.flags_dict[labels.IAP_CLIENT_ID] = iap_client_id
      ctx.flags_dict[labels.NAMESPACE] = namespace
      handler_factory.create_handler(ctx.flags_dict).list_runs()
  
file_path: tfx/tfx/tools/cli/commands/run.py
imports: from typing import Iterable, Dict
  import click
  from tfx.tools.cli import labels
  from tfx.tools.cli.cli_context import Context
  from tfx.tools.cli.cli_context import pass_context
  from tfx.tools.cli.handler import handler_factory
label_desc: Use image node_id 5 for calling a global function with example usage: list_runs(ctx, engine, pipeline_name, endpoint, iap_client_id, namespace) without return types