code: def _protocol_buffer_to_cudf_buffer(protocol_buffer):
      return as_buffer(
          rmm.DeviceBuffer(
              ptr=protocol_buffer.ptr, size=protocol_buffer.bufsize
          ),
          exposed=True,
      )
  
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 9 for calling a global function with example usage: _protocol_buffer_to_cudf_buffer(protocol_buffer) and returns: as_buffer