code: def stop_other_daemons(self):
          
          if self.smbd.running:
              self.smbd.stop()
  
          if self.nmbd.running:
              self.nmbd.stop()
docs: Stop services already provided by main samba daemon