class_docstr: Protocol defining the interface of a Dask collection.
class_docstr_tok: ["Protocol","defining","the","interface","of","a","Dask","collection","."]
docstr: Render the computation of this object's task graph using graphviz.
  
  Requires ``graphviz`` to be installed.
  
  Parameters
  ----------
  filename : str or None, optional
      The name of the file to write to disk. If the provided
      `filename` doesn't include an extension, '.png' will be
      used by default. If `filename` is None, no file will be
      written, and we communicate with dot using only pipes.
  format : {'png', 'pdf', 'dot', 'svg', 'jpeg', 'jpg'}, optional
      Format in which to write output file. Default is 'png'.
  optimize_graph : bool, optional
      If True, the graph is optimized before rendering.
      Otherwise, the graph is displayed as is. Default is False.
  color: {None, 'order'}, optional
      Options to color nodes. Provide ``cmap=`` keyword for
      additional colormap
  **kwargs
     Additional keyword arguments to forward to ``to_graphviz``.
  
  Examples
  --------
  >>> x.visualize(filename='dask.pdf')  # doctest: +SKIP
  >>> x.visualize(filename='dask.pdf', color='order')  # doctest: +SKIP
  
  Returns
  -------
  result : IPython.diplay.Image, IPython.display.SVG, or None
      See dask.dot.dot_graph for more information.
  
  See Also
  --------
  dask.visualize
  dask.dot.dot_graph
  
  Notes
  -----
  For more information on optimization see here:
  
  https://docs.dask.org/en/latest/optimize.html
docstr_tok: ["Render","the","computation","of","this","object","'s","task","graph","using","graphviz",".","Requires","``","graphviz","``","to","be","installed",".","Parameters","--","--","--","--","--","filename",":","str","or","None",",","optional","The","name","of","the","file","to","write","to","disk",".","If","the","provided","`","filename","`","does","n't","include","an","extension",",","'.png","'","will","be","used","by","default",".","If","`","filename","`","is","None",",","no","file","will","be","written",",","and","we","communicate","with","dot","using","only","pipes",".","format",":","{","'png","'",",","'pdf","'",",","'dot","'",",","'svg","'",",","'jpeg","'",",","'jpg","'","}",",","optional","Format","in","which","to","write","output","file",".","Default","is","'png","'",".","optimize_graph",":","bool",",","optional","If","True",",","the","graph","is","optimized","before","rendering",".","Otherwise",",","the","graph","is","displayed","as","is",".","Default","is","False",".","color",":","{","None",",","'order","'","}",",","optional","Options","to","color","nodes",".","Provide","``","cmap=","``","keyword","for","additional","colormap","*","*","kwargs","Additional","keyword","arguments","to","forward","to","``","to_graphviz","``",".","Examples","--","--","--","--",">",">",">","x.visualize","(","filename='dask.pdf","'",")","#","doctest",":","+SKIP",">",">",">","x.visualize","(","filename='dask.pdf","'",",","color='order","'",")","#","doctest",":","+SKIP","Returns","--","--","--","-","result",":","IPython.diplay.Image",",","IPython.display.SVG",",","or","None","See","dask.dot.dot_graph","for","more","information",".","See","Also","--","--","--","--","dask.visualize","dask.dot.dot_graph","Notes","--","--","-","For","more","information","on","optimization","see","here",":","https",":","\/\/docs.dask.org\/en\/latest\/optimize.html"]
code: def visualize(
      self,
      filename: str = "mydask",
      format: str | None = None,
      optimize_graph: bool = False,
      **kwargs: Any,
  ) -> DisplayObject | None:
      """Render the computation of this object's task graph using graphviz.
  
      Requires ``graphviz`` to be installed.
  
      Parameters
      ----------
      filename : str or None, optional
          The name of the file to write to disk. If the provided
          `filename` doesn't include an extension, '.png' will be
          used by default. If `filename` is None, no file will be
          written, and we communicate with dot using only pipes.
      format : {'png', 'pdf', 'dot', 'svg', 'jpeg', 'jpg'}, optional
          Format in which to write output file. Default is 'png'.
      optimize_graph : bool, optional
          If True, the graph is optimized before rendering.
          Otherwise, the graph is displayed as is. Default is False.
      color: {None, 'order'}, optional
          Options to color nodes. Provide ``cmap=`` keyword for
          additional colormap
      **kwargs
         Additional keyword arguments to forward to ``to_graphviz``.
  
      Examples
      --------
      >>> x.visualize(filename='dask.pdf')  # doctest: +SKIP
      >>> x.visualize(filename='dask.pdf', color='order')  # doctest: +SKIP
  
      Returns
      -------
      result : IPython.diplay.Image, IPython.display.SVG, or None
          See dask.dot.dot_graph for more information.
  
      See Also
      --------
      dask.visualize
      dask.dot.dot_graph
  
      Notes
      -----
      For more information on optimization see here:
  
      https://docs.dask.org/en/latest/optimize.html
  
      """
      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 8 for calling the DaskCollection obj's underlying member method code with example usage: obj.visualize(filename, format, optimize_graph) without return types