class_docstr: DLPack data interchange protocol.
  
  .. seealso:: :ref:`dlpack:python-spec`
class_docstr_tok: ["DLPack","data","interchange","protocol",".","..","seealso",":",":",":","ref",":","`","dlpack",":","python-spec","`"]
docstr: Get device type and device ID in DLPack format.
docstr_tok: ["Get","device","type","and","device","ID","in","DLPack","format","."]
code: def __dlpack_device__(self) -> Tuple[_DeviceType, _DeviceID]:
      """Get device type and device ID in DLPack format."""
      ...
  
file_path: mpi4py/src/mpi4py/typing.py
imports: import sys
  from typing import Any, Union, Optional, Sequence, List, Dict, Tuple
  from numbers import Integral
  from .MPI import Datatype, BottomType, InPlaceType
label_desc: Use image node_id 2 for calling the SupportsDLPack obj's underlying member method code with example usage: obj.__dlpack_device__() without return types