class_docstr: Protocol defining the interface of a Dask collection.
class_docstr_tok: ["Protocol","defining","the","interface","of","a","Dask","collection","."]
docstr: Compute this dask collection.
  
  This turns a lazy Dask collection into its in-memory
  equivalent. For example a Dask array turns into a NumPy array
  and a Dask dataframe turns into a Pandas dataframe. The entire
  dataset must fit into memory before calling this operation.
  
  Parameters
  ----------
  scheduler : string, optional
      Which scheduler to use like "threads", "synchronous" or
      "processes". If not provided, the default is to check the
      global settings first, and then fall back to the
      collection defaults.
  optimize_graph : bool, optional
      If True [default], the graph is optimized before
      computation. Otherwise the graph is run as is. This can be
      useful for debugging.
  kwargs :
      Extra keywords to forward to the scheduler function.
  
  Returns
  -------
  The collection's computed result.
  
  See Also
  --------
  dask.compute
docstr_tok: ["Compute","this","dask","collection",".","This","turns","a","lazy","Dask","collection","into","its","in-memory","equivalent",".","For","example","a","Dask","array","turns","into","a","NumPy","array","and","a","Dask","dataframe","turns","into","a","Pandas","dataframe",".","The","entire","dataset","must","fit","into","memory","before","calling","this","operation",".","Parameters","--","--","--","--","--","scheduler",":","string",",","optional","Which","scheduler","to","use","like","``","threads","''",",","``","synchronous","''","or","``","processes","''",".","If","not","provided",",","the","default","is","to","check","the","global","settings","first",",","and","then","fall","back","to","the","collection","defaults",".","optimize_graph",":","bool",",","optional","If","True","[","default","]",",","the","graph","is","optimized","before","computation",".","Otherwise","the","graph","is","run","as","is",".","This","can","be","useful","for","debugging",".","kwargs",":","Extra","keywords","to","forward","to","the","scheduler","function",".","Returns","--","--","--","-","The","collection","'s","computed","result",".","See","Also","--","--","--","--","dask.compute"]
code: def compute(self, **kwargs: Any) -> Any:
      """Compute this dask collection.
  
      This turns a lazy Dask collection into its in-memory
      equivalent. For example a Dask array turns into a NumPy array
      and a Dask dataframe turns into a Pandas dataframe. The entire
      dataset must fit into memory before calling this operation.
  
      Parameters
      ----------
      scheduler : string, optional
          Which scheduler to use like "threads", "synchronous" or
          "processes". If not provided, the default is to check the
          global settings first, and then fall back to the
          collection defaults.
      optimize_graph : bool, optional
          If True [default], the graph is optimized before
          computation. Otherwise the graph is run as is. This can be
          useful for debugging.
      kwargs :
          Extra keywords to forward to the scheduler function.
  
      Returns
      -------
      The collection's computed result.
  
      See Also
      --------
      dask.compute
  
      """
      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 6 for calling the DaskCollection obj's underlying member method code with example usage: obj.compute() without return types