code: def _get_base_dtype(dtype: DtypeObj) -> DtypeObj:
      # TODO: replace the use of this function with just `dtype.base`
      # when Pandas 2.1.0 is the minimum version we support:
      # https://github.com/pandas-dev/pandas/pull/52706
      if isinstance(dtype, pd.DatetimeTZDtype):
          return np.dtype(f"<M8[{dtype.unit}]")
      else:
          return dtype.base
  
imports: import datetime
  from collections import namedtuple
  from decimal import Decimal
  import cupy
  import numpy
  import pandas
  import pyarrow
  from pandas.core.dtypes.common import infer_dtype_from_object
  import cudf
  from cudf._typing import DtypeObj
  from cudf.api.types import is_bool, is_float, is_integer
label_desc: Use image node_id 26 for calling a global function with example usage: _get_base_dtype(dtype) and returns: np, dtype