code: def is_pyarrow_string_index(x):
      if isinstance(x, pd.MultiIndex):
          return any(
              is_pyarrow_string_index(level) for level in x.levels
          )
      return isinstance(x, pd.Index) and is_pyarrow_string_dtype(
          x.dtype
      )
  
file_path: dask/dask/dataframe/_pyarrow.py
imports: from __future__ import annotations
  from functools import partial
  import pandas
  from packaging.version import Version
  from dask.dataframe._compat import PANDAS_GE_150, PANDAS_GE_200
  from dask.dataframe.utils import is_dataframe_like, is_index_like, is_series_like
label_desc: Use image node_id 3 for calling a global function with example usage: is_pyarrow_string_index(x) and returns: unknown, any