code: def convert_pip_requirements_to_table(
      requirements: Iterable[str], markdown: bool = True
  ) -> str:
      """
      Converts PIP requirement list to a Markdown table.
      :param requirements: requirements list
      :param markdown: if True, Markdown format is used else rst
      :return: formatted table
      """
      from tabulate import tabulate
  
      headers = ["PIP package", "Version required"]
      table_data = []
      for dependency in requirements:
          req = PipRequirements.from_requirement(dependency)
          formatted_package = (
              f"`{req.package}`" if markdown else f"``{req.package}``"
          )
          formatted_version = ""
          if req.version_required:
              formatted_version = (
                  f"`{req.version_required}`"
                  if markdown
                  else f"``{req.version_required}``"
              )
          table_data.append((formatted_package, formatted_version))
      return tabulate(
          table_data,
          headers=headers,
          tablefmt="pipe" if markdown else "rst",
      )
  
imports: from __future__ import annotations
  import fnmatch
  import json
  import os
  import subprocess
  import sys
  from enum import Enum
  from functools import lru_cache
  from pathlib import Path
  from typing import Any, Iterable, NamedTuple
  from airflow_breeze.global_constants import ALLOWED_PYTHON_MAJOR_MINOR_VERSIONS, PROVIDER_DEPENDENCIES, PROVIDER_RUNTIME_DATA_SCHEMA_PATH, REGULAR_DOC_PACKAGES
  from airflow_breeze.utils.console import get_console
  from airflow_breeze.utils.path_utils import AIRFLOW_PROVIDERS_ROOT, BREEZE_SOURCES_ROOT, DOCS_ROOT, GENERATED_PROVIDER_PACKAGES_DIR, PROVIDER_DEPENDENCIES_JSON_FILE_PATH
  from airflow_breeze.utils.publish_docs_helpers import _load_schema, get_provider_yaml_paths
  from airflow_breeze.utils.run_utils import run_command
  from airflow_breeze.utils.versions import get_version_tag, strip_leading_zeros_from_version
label_desc: Use image node_id 33 for calling a global function with example usage: convert_pip_requirements_to_table(requirements, markdown) and returns: tabulate