class_docstr: Data in the buffer is guaranteed to be contiguous in memory.
class_docstr_tok: ["Data","in","the","buffer","is","guaranteed","to","be","contiguous","in","memory","."]
docstr: Represent this structure as DLPack interface.
docstr_tok: ["Represent","this","structure","as","DLPack","interface","."]
code: def __dlpack__(self):
      """
      Represent this structure as DLPack interface.
      """
      if _NUMPY_HAS_DLPACK:
          return self._x.__dlpack__()
      raise NotImplementedError("__dlpack__")
  
file_path: catboost/contrib/python/pandas/py3/pandas/core/interchange/buffer.py
imports: from __future__ import annotations
  import numpy
  from pandas.core.interchange.dataframe_protocol import Buffer, DlpackDeviceType
  from pandas.util.version import Version
label_desc: Use image node_id 4 for calling the PandasBuffer obj's underlying member method code with example usage: obj.__dlpack__() and returns: self