code: def _get_host(self, hostname):
          
          if hostname not in self.hosts:
              self.hosts[hostname] = {
                  'groups': set(),
                  'hostvars': {}
              }
          return self.hosts[hostname]
docs: Get an existing host or otherwise initialize a new empty one.