code: def concat_tables(tables: Iterable[pa.Table]) -> pa.Table:
      import pyarrow as pa
  
      if parse(pa.__version__) >= parse("14.0.0"):
          return pa.concat_tables(tables, promote_options="permissive")
      try:
          return pa.concat_tables(tables, promote=True)
      except pa.ArrowNotImplementedError as e:
          if parse(pa.__version__) >= parse("12.0.0"):
              raise e
          raise
  
file_path: distributed/distributed/shuffle/_arrow.py
imports: from __future__ import annotations
  from collections.abc import Iterable
  from pathlib import Path
  from typing import TYPE_CHECKING
  from packaging.version import parse
  from dask.utils import parse_bytes
label_desc: Use image node_id 3 for calling a global function with example usage: concat_tables(tables) and returns: pa, pa