code: def protocol_dtype_to_cupy_dtype(_dtype: ProtoDtype) -> cp.dtype:
      kind = _dtype[0]
      bitwidth = _dtype[1]
      if _dtype[0] not in _SUPPORTED_KINDS:
          raise RuntimeError(f"Data type {_dtype[0]} not handled yet")
  
      return _CP_DTYPES[kind][bitwidth]
  
imports: import enum
  from collections import abc
  from typing import Any, Dict, Iterable, Mapping, Optional, Sequence, Tuple, cast
  import cupy
  import numpy
  from numba.cuda import as_cuda_array
  import rmm
  import cudf
  from cudf.core.buffer import Buffer, as_buffer
  from cudf.core.column import as_column, build_categorical_column, build_column
label_desc: Use image node_id 6 for calling a global function with example usage: protocol_dtype_to_cupy_dtype(_dtype) and returns: _CP_DTYPES