code: def headless(self, headless):
          
  
          if headless:
              log.info("VMware VM '{name}' [{id}] has enabled the headless mode".format(name=self.name, id=self.id))
          else:
              log.info("VMware VM '{name}' [{id}] has disabled the headless mode".format(name=self.name, id=self.id))
          self._headless = headless
docs: Sets either the VM will start in headless mode
  
          :param headless: boolean