code: def arrow_string_types_mapper() -> Callable:
      pa = import_optional_dependency("pyarrow")
  
      return {
          pa.string(): pd.StringDtype(storage="pyarrow_numpy"),
          pa.large_string(): pd.StringDtype(storage="pyarrow_numpy"),
      }.get
  
imports: from __future__ import annotations
  from typing import Callable
  from pandas.compat._optional import import_optional_dependency
  import pandas
label_desc: Use image node_id 2 for calling a global function with example usage: arrow_string_types_mapper() and returns: dict