code: def import_pyarrow_interchange() -> ModuleType:
      min_version = "11.0.0"
      try:
          version = importlib_version("pyarrow")
  
          if Version(version) < Version(min_version):
              raise RuntimeError(
                  f"The pyarrow package must be version {min_version} or greater. "
                  f"Found version {version}"
              )
          import pyarrow.interchange as pi
  
          return pi
      except ImportError as err:
          raise ImportError(
              f"Usage of the DataFrame Interchange Protocol requires\n"
              f"version {min_version} or greater of the pyarrow package. \n"
              f"This can be installed with pip using:\n"
              f'   pip install "pyarrow>={min_version}"\n'
              "or conda:\n"
              f'   conda install -c conda-forge "pyarrow>={min_version}"\n\n'
              f"ImportError: {err.args[0]}"
          ) from err
  
file_path: altair/altair/utils/_importers.py
imports: from types import ModuleType
  from packaging.version import Version
  from importlib.metadata import version
label_desc: Use image node_id 4 for calling a global function with example usage: import_pyarrow_interchange() and returns: pi