code: def test_is_categorical_dispatch():
      assert is_categorical_dtype(pd.CategoricalDtype([1, 2, 3]))
      assert is_categorical_dtype(cudf.CategoricalDtype([1, 2, 3]))
  
      assert is_categorical_dtype(
          cudf.Series([1, 2, 3], dtype="category")
      )
      assert is_categorical_dtype(
          pd.Series([1, 2, 3], dtype="category")
      )
  
      assert is_categorical_dtype(pd.Index([1, 2, 3], dtype="category"))
      assert is_categorical_dtype(
          cudf.Index([1, 2, 3], dtype="category")
      )
  
file_path: cudf/python/dask_cudf/dask_cudf/tests/test_dispatch.py
imports: import numpy
  import pandas
  import pytest
  from dask.base import tokenize
  from dask.dataframe import assert_eq
  from dask.dataframe.methods import is_categorical_dtype
  import cudf
label_desc: Use image node_id 1 for calling a global function with example usage: test_is_categorical_dispatch() without return types