code: def categorical_dtype(meta, categories=None, ordered=False):
      func = categorical_dtype_dispatch.dispatch(type(meta))
      return func(categories=categories, ordered=ordered)
  
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 3 for calling a global function with example usage: categorical_dtype(meta, categories, ordered) and returns: func