code: def is_categorical_dtype(obj):
      obj = getattr(obj, "dtype", obj)
      func = is_categorical_dtype_dispatch.dispatch(type(obj))
      return func(obj)
  
file_path: dask/dask/dataframe/dispatch.py
imports: from __future__ import annotations
  import pandas
  from dask import is_dask_collection
  from dask.utils import Dispatch
label_desc: Use image node_id 2 for calling a global function with example usage: is_categorical_dtype(obj) and returns: func