code: def test_is_pyarrow_string_dtype(dtype, expected):
      if isinstance(dtype, pa.DataType):
          dtype = pd.ArrowDtype(dtype)
      assert is_pyarrow_string_dtype(dtype) is expected
  
file_path: dask/dask/dataframe/tests/test_pyarrow.py
imports: from __future__ import annotations
  import numpy
  import pandas
  import pytest
  from pandas.tests.extension.decimal.array import DecimalDtype
  from dask.dataframe._compat import PANDAS_GE_140, PANDAS_GE_150
  from dask.dataframe._pyarrow import is_object_string_dataframe, is_object_string_dtype, is_object_string_index, is_object_string_series, is_pyarrow_string_dtype
label_desc: Use image node_id 1 for calling a global function with example usage: test_is_pyarrow_string_dtype(dtype, expected) without return types