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 MongoDB instance on localhost. Hence, we simply treat the MongoDB
  instance as master node.
docstr: Release all resources.
docstr_tok: ["Release","all","resources","."]
code: def cleanup(self) -> None:
      """Release all resources."""
      self.log.info("Stop the MongoDB ...")
      self.log.debug("Cleaning up the LocalMasterLauncher ...")
      return_code = os.system(self.get_mongod_stop_cmd())
      if return_code == 0:
          self.log.info("MongoDB successfully stopped.")
      else:
          self.log.warning("MongoDB daemon could NOT be stopped.")
      super().cleanup()
  
imports: import os
  import time
  from typing import List, Optional, Union
  from lazycluster import Runtime, RuntimeGroup, RuntimeTask, _utils
  from lazycluster.cluster import MasterLauncher, MasterWorkerCluster, WorkerLauncher
  from lazycluster.cluster.exceptions import MasterStartError
  from lazycluster.exceptions import PortInUseError
  from lazycluster.utils import Environment
label_desc: Use image node_id 4 for calling the LocalMongoLauncher obj's underlying member method code with example usage: obj.cleanup() without return types