docstr: Closes any open dask client
docstr_tok: ["Closes","any","open","dask","client"]
code: def close(self) -> None:
      """Closes any open dask client"""
      if self._client is None:
          return
  
      self._client.close()
      if self._cluster is not None:
          self._cluster.close()
  
      self._client = None
      self._cluster = None
  
imports: from __future__ import annotations
  from abc import ABC, abstractmethod
  from typing import Any
  import tempfile
  from dask.distributed import Client, LocalCluster
  from autosklearn.util.single_thread_client import SingleThreadedClient
label_desc: Use image node_id 3 for calling the LocalDask obj's underlying member method code with example usage: obj.close() without return types