class_docstr: Concrete implementation of the `MasterLauncher` interface. See its documentation to get a list of the inherited methods and attributes.
  
  This class implements the logic for starting a the DASK master instance (i.e. scheduler in DASK terms) on localhost.
class_docstr_tok: ["Concrete","implementation","of","the","`","MasterLauncher","`","interface",".","See","its","documentation","to","get","a","list","of","the","inherited","methods","and","attributes",".","This","class","implements","the","logic","for","starting","a","the","DASK","master","instance","(","i.e",".","scheduler","in","DASK","terms",")","on","localhost","."]
docstr: Release all resources.
docstr_tok: ["Release","all","resources","."]
code: def cleanup(self) -> None:
      """Release all resources."""
      self.log.info("Cleanup the LocalMasterLauncher ...")
      super().cleanup()
  
imports: import time
  from subprocess import Popen
  from typing import List, Optional, Union
  from distributed import Client
  from lazycluster import Runtime, RuntimeGroup, RuntimeTask, _utils
  from lazycluster.cluster import MasterLauncher, MasterWorkerCluster, WorkerLauncher
  from lazycluster.cluster.exceptions import MasterStartError
  from lazycluster.exceptions import NoPortsLeftError, PortInUseError
label_desc: Use image node_id 2 for calling the LocalMasterLauncher obj's underlying member method code with example usage: obj.cleanup() without return types