code: def union_categoricals(
      to_union, sort_categories=False, ignore_order=False
  ):
      func = union_categoricals_dispatch.dispatch(type(to_union[0]))
      return func(
          to_union,
          sort_categories=sort_categories,
          ignore_order=ignore_order,
      )
  
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 6 for calling a global function with example usage: union_categoricals(to_union, sort_categories, ignore_order) and returns: func