class_docstr: Protocol defining the interface of a Dask collection.
class_docstr_tok: ["Protocol","defining","the","interface","of","a","Dask","collection","."]
docstr: Finalizer function and optional arguments to construct final result.
  
  Upon computation each key in the collection will have an in
  memory result, the postcompute function combines each key's
  result into a final in memory representation. For example,
  dask.array.Array concatenates the arrays at each chunk into a
  final in-memory array.
  
  Returns
  -------
  PostComputeCallable
      Callable that receives the sequence of the results of each
      final key along with optional arguments. An example signature
      would be ``finalize(results: Sequence[Any], *args)``.
  tuple[Any, ...]
      Optional arguments passed to the function following the
      key results (the `*args` part of the
      ``PostComputeCallable``. If no additional arguments are to
      be passed then this must be an empty tuple.
docstr_tok: ["Finalizer","function","and","optional","arguments","to","construct","final","result",".","Upon","computation","each","key","in","the","collection","will","have","an","in","memory","result",",","the","postcompute","function","combines","each","key's","result","into","a","final","in","memory","representation",".","For","example",",","dask.array.Array","concatenates","the","arrays","at","each","chunk","into","a","final","in-memory","array",".","Returns","--","--","--","-","PostComputeCallable","Callable","that","receives","the","sequence","of","the","results","of","each","final","key","along","with","optional","arguments",".","An","example","signature","would","be","``","finalize","(","results",":","Sequence","[","Any","]",",","*","args",")","``",".","tuple","[","Any",",","...","]","Optional","arguments","passed","to","the","function","following","the","key","results","(","the","`","*","args","`","part","of","the","``","PostComputeCallable","``",".","If","no","additional","arguments","are","to","be","passed","then","this","must","be","an","empty","tuple","."]
code: def __dask_postcompute__(self) -> tuple[PostComputeCallable, tuple]:
      """Finalizer function and optional arguments to construct final result.
  
      Upon computation each key in the collection will have an in
      memory result, the postcompute function combines each key's
      result into a final in memory representation. For example,
      dask.array.Array concatenates the arrays at each chunk into a
      final in-memory array.
  
      Returns
      -------
      PostComputeCallable
          Callable that receives the sequence of the results of each
          final key along with optional arguments. An example signature
          would be ``finalize(results: Sequence[Any], *args)``.
      tuple[Any, ...]
          Optional arguments passed to the function following the
          key results (the `*args` part of the
          ``PostComputeCallable``. If no additional arguments are to
          be passed then this must be an empty tuple.
  
      """
      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 3 for calling the DaskCollection obj's underlying member method code with example usage: obj.__dask_postcompute__() without return types