code: def _wrap_pandas_is_dtype_api(func):
      """Wrap a pandas dtype checking function to ignore cudf types."""
  
      @wraps(func)
      def wrapped_func(obj):
          if (
              (isclass(obj) and issubclass(obj, _BaseDtype))
              or isinstance(obj, _BaseDtype)
              or isinstance(getattr(obj, "dtype", None), _BaseDtype)
          ):
              return False
          return func(obj)
  
      return wrapped_func
  
imports: from __future__ import annotations
  from collections import abc
  from functools import wraps
  from inspect import isclass
  from typing import List, Union
  import cupy
  import numpy
  import pandas
  from pandas.api import types
  import cudf
  from cudf.core._compat import PANDAS_GE_150
  from cudf.core.dtypes import _BaseDtype, dtype, is_categorical_dtype, is_decimal32_dtype, is_decimal64_dtype, is_decimal128_dtype, is_decimal_dtype, is_interval_dtype, is_list_dtype, is_struct_dtype
label_desc: Use image node_id 8 for calling a global function with example usage: _wrap_pandas_is_dtype_api(func) and returns: wrapped_func, func, False