code: def serial(self, obj: Any, context: Dict):
      header, buffers = obj.device_serialize()
      if hasattr(obj, "columns"):
          header["_ext_columns"] = self._get_ext_index_type(obj.columns)
      if hasattr(obj, "index"):
          header["_ext_index"] = self._get_ext_index_type(obj.index)
      return (header,), buffers, True
  
file_path: mars/mars/serialization/cuda.py
imports: from typing import Any, List, Dict, Tuple
  import pandas
  from ..utils import lazy_import
  from .core import Serializer, buffered
label_desc: Use image node_id 3 for calling the CudfSerializer obj's underlying member method code with example usage: obj.serial(obj, context) and returns: header,  buffers,  True