class_docstr: Dumps cluster state prior to Scheduler shutdown
  
  The Scheduler may shutdown in cases where it is in an error state,
  or when it has been unexpectedly idle for long periods of time.
  This plugin dumps the cluster state prior to Scheduler shutdown
  for debugging purposes.
code: def __init__(
      self,
      url: str,
      exclude: Collection[str] = DEFAULT_CLUSTER_DUMP_EXCLUDE,
      format_: Literal["msgpack", "yaml"] = DEFAULT_CLUSTER_DUMP_FORMAT,
      **storage_options: dict[str, Any],
  ):
      self.url = url
      self.exclude = exclude
      self.format = format_
      self.storage_options = storage_options
  
file_path: distributed/distributed/diagnostics/cluster_dump.py
imports: from __future__ import annotations
  from collections.abc import Collection
  from typing import Any, Literal
  from distributed.cluster_dump import DEFAULT_CLUSTER_DUMP_EXCLUDE, DEFAULT_CLUSTER_DUMP_FORMAT
  from distributed.diagnostics.plugin import SchedulerPlugin
  from distributed.scheduler import Scheduler
label_desc: Use image node_id 1 to create a new ClusterDump object from inherited base classes: SchedulerPlugin with example: obj = ClusterDump(url, exclude, format_)