class_docstr: Helper methods for Airflow Handler.
class_docstr_tok: ["Helper","methods","for","Airflow","Handler","."]
docstr: Prints runs in a tabular format with headers mentioned below.
docstr_tok: ["Prints","runs","in","a","tabular","format","with","headers","mentioned","below","."]
code: def _print_runs(self, runs):
      """Prints runs in a tabular format with headers mentioned below."""
      headers = (
          "pipeline_name",
          "run_id",
          "state",
          "execution_date",
          "start_date",
          "end_date",
      )
      data = []
      for run in runs:
          # Replace header name 'dag_id' with 'pipeline_name'.
          data.append(
              [run["dag_id"], *[run[key] for key in headers[1:]]]
          )
      click.echo(self._format_table(headers, data))
  
imports: import json
  import os
  import subprocess
  from typing import Any, Dict, List
  import click
  from tfx.dsl.io import fileio
  from tfx.tools.cli import labels
  from tfx.tools.cli.handler import airflow_dag_runner_patcher
  from tfx.tools.cli.handler import base_handler
  from tfx.utils import io_utils
label_desc: Use image node_id 13 for calling the AirflowHandler obj's underlying member method code with example usage: obj._print_runs(runs) without return types