class_docstr: A class to Mock the Distributed Client class, in case
  Auto-Sklearn is meant to run in the current Thread.
class_docstr_tok: ["A","class","to","Mock","the","Distributed","Client","class",",","in","case","Auto-Sklearn","is","meant","to","run","in","the","current","Thread","."]
code: def __init__(self) -> None:
      # Raise a not implemented error if using a method from Client
      implemented_methods = [
          "submit",
          "close",
          "shutdown",
          "write_scheduler_file",
          "_get_scheduler_info",
          "nthreads",
      ]
      method_list = [
          func
          for func in dir(dask.distributed.Client)
          if callable(getattr(dask.distributed.Client, func))
          and not func.startswith("__")
      ]
      for method in method_list:
          if method in implemented_methods:
              continue
          setattr(self, method, self._unsupported_method)
      pass
  
imports: import typing
  from typing import Any
  from pathlib import Path
  import dask.distributed
label_desc: Use image node_id 1 to create a new SingleThreadedClient object from inherited base classes: dask.distributed with example: obj = SingleThreadedClient()