class_docstr: Kill Workers Randomly
  
  This kills workers in a cluster randomly.  It is intended to be used in
  stress testing.
  
  Parameters
  ----------
  delay: str
      The expected amount of time for a worker to live.
      The actual time will vary, treating worker death as a poisson process.
  mode: str
      or "graceful" which calls worker.close(...)
      Either "sys.exit" which calls sys.exit(0)
      or "segfault" which triggers a segfault
code: def sys_exit(self):
      sys.exit(0)
  
file_path: distributed/distributed/chaos.py
imports: from __future__ import annotations
  import asyncio
  import ctypes
  import random
  import sys
  from typing import Literal
  from dask.utils import parse_timedelta
  from distributed.diagnostics.plugin import WorkerPlugin
label_desc: Use image node_id 3 for calling the KillWorker obj's underlying member method code with example usage: obj.sys_exit() without return types