code: def type_is_categorical(pG):
      return (
          pG._vertex_prop_dataframe is None
          or pG._vertex_prop_dataframe.dtypes[pG.type_col_name]
          == "category"
      ) and (
          pG._edge_prop_dataframe is None
          or pG._edge_prop_dataframe.dtypes[pG.type_col_name]
          == "category"
      )
  
imports: import gc
  import pytest
  import pandas
  import numpy
  import cudf
  import cugraph
  import dask_cudf
  import cupy
  import cugraph.dask
  from cupy.testing import assert_array_equal
  from cudf.testing import assert_frame_equal, assert_series_equal
  from pylibcugraph.testing.utils import gen_fixture_params_product
  from cugraph.dask.common.mg_utils import is_single_gpu
  from cugraph.datasets import cyber, netscience
label_desc: Use image node_id 1 for calling a global function with example usage: type_is_categorical(pG) and returns: unknown