code: def test_numba_unsupported_dtypes(apply_axis):
      f = lambda x: x
      df = DataFrame({"a": [1, 2], "b": ["a", "b"], "c": [4, 5]})
      df["c"] = df["c"].astype("double[pyarrow]")
  
      with pytest.raises(
          ValueError,
          match="Column b must have a numeric dtype. Found 'object|string' instead",
      ):
          df.apply(f, engine="numba", axis=apply_axis)
  
      with pytest.raises(
          ValueError,
          match="Column c is backed by an extension array, "
          "which is not supported by the numba engine.",
      ):
          df["c"].to_frame().apply(f, engine="numba", axis=apply_axis)
  
file_path: pandas/pandas/tests/apply/test_numba.py
imports: import numpy
  import pytest
  import pandas.util._test_decorators
  from pandas import DataFrame, Index
  import pandas._testing
label_desc: Use image node_id 9 for calling a global function with example usage: test_numba_unsupported_dtypes(apply_axis) without return types