code: def test_from_dataframe_pyarrow_min_version(monkeypatch: Any) -> None:
      dfi = pl.DataFrame({"a": [1, 2]}).to_arrow().__dataframe__()
  
      monkeypatch.setattr(
          pl.interchange.from_dataframe.pa,  # type: ignore[attr-defined]
          "__version__",
          "10.0.0",
      )
  
      with pytest.raises(ImportError, match="pyarrow"):
          pl.from_dataframe(dfi)
  
imports: from __future__ import annotations
  from typing import Any
  import pandas
  import pyarrow
  import pytest
  import polars
  import polars.interchange.from_dataframe
  from polars.testing import assert_frame_equal
label_desc: Use image node_id 10 for calling a global function with example usage: test_from_dataframe_pyarrow_min_version(monkeypatch) without return types