code: def _write_inventory(self):
          
          self._verify_inventory()
  
          util.write_file(self.inventory_file, util.safe_dump(self.inventory))
docs: Writes the provisioner's inventory file to disk and returns None.
  
          :return: None