code: def provide_stats(github_token: str, table: bool):
      g = Github(github_token)
      repo = g.get_repo("apache/airflow")
      issues = repo.get_issues(
          labels=[PROVIDER_TESTING_LABEL],
          state="closed",
          sort="created",
          direction="asc",
      )
      stats_list: list[Stats] = []
      for issue in issues:
          stat = get_stats(issue)
          if not table:
              print(stat)
          else:
              stats_list.append(stat)
      if table:
          rows = stats_to_rows(stats_list)
          print(
              tabulate(
                  rows,
                  headers=(
                      "Issue",
                      "Num Providers",
                      "Num Issues",
                      "Tested Issues",
                      "Tested (%)",
                      "Involved",
                      "Commenting",
                      "Involved who commented",
                      "Extra people",
                      "User response (%)",
                  ),
                  tablefmt="github",
              )
          )
  
imports: from __future__ import annotations
  import logging
  import os
  import re
  import textwrap
  from pathlib import Path
  from typing import TYPE_CHECKING
  import rich_click
  from attr import dataclass
  from github import Github
  from rich.console import Console
  from tabulate import tabulate
label_desc: Use image node_id 6 for calling a global function with example usage: provide_stats(github_token, table) without return types