class_docstr: Protocol defining the interface of a Dask collection.
class_docstr_tok: ["Protocol","defining","the","interface","of","a","Dask","collection","."]
docstr: The Dask task graph.
  
  The core Dask collections (Array, DataFrame, Bag, and Delayed)
  use a :py:class:`~dask.highlevelgraph.HighLevelGraph` to
  represent the collection task graph. It is also possible to
  represent the task graph as a low level graph using a Python
  dictionary.
  
  Returns
  -------
  Mapping
      The Dask task graph. If the instance returns a
      :py:class:`dask.highlevelgraph.HighLevelGraph` then the
      :py:func:`__dask_layers__` method must be implemented, as
      defined by the :py:class:`~dask.typing.HLGDaskCollection`
      protocol.
docstr_tok: ["The","Dask","task","graph",".","The","core","Dask","collections","(","Array",",","DataFrame",",","Bag",",","and","Delayed",")","use","a",":","py",":","class",":","`","~dask.highlevelgraph.HighLevelGraph","`","to","represent","the","collection","task","graph",".","It","is","also","possible","to","represent","the","task","graph","as","a","low","level","graph","using","a","Python","dictionary",".","Returns","--","--","--","-","Mapping","The","Dask","task","graph",".","If","the","instance","returns","a",":","py",":","class",":","`","dask.highlevelgraph.HighLevelGraph","`","then","the",":","py",":","func",":","`","__dask_layers__","`","method","must","be","implemented",",","as","defined","by","the",":","py",":","class",":","`","~dask.typing.HLGDaskCollection","`","protocol","."]
code: def __dask_graph__(self) -> Graph:
      """The Dask task graph.
  
      The core Dask collections (Array, DataFrame, Bag, and Delayed)
      use a :py:class:`~dask.highlevelgraph.HighLevelGraph` to
      represent the collection task graph. It is also possible to
      represent the task graph as a low level graph using a Python
      dictionary.
  
      Returns
      -------
      Mapping
          The Dask task graph. If the instance returns a
          :py:class:`dask.highlevelgraph.HighLevelGraph` then the
          :py:func:`__dask_layers__` method must be implemented, as
          defined by the :py:class:`~dask.typing.HLGDaskCollection`
          protocol.
  
      """
      raise NotImplementedError(
          "Inheriting class must implement this method."
      )
  
imports: from __future__ import annotations
  import abc
  from collections.abc import Callable, Hashable, Mapping, Sequence
  from enum import Enum
  from typing import TYPE_CHECKING, Any, Literal, Protocol, TypeVar, Union, runtime_checkable
label_desc: Use image node_id 1 for calling the DaskCollection obj's underlying member method code with example usage: obj.__dask_graph__() without return types