code: def get_hosts(self):
          
          limited_hosts = {}
          if self.limit is not None:
              # Find hosts and groups of hosts to include
              for include in self.limit['include']:
                  # Include whole group
                  for hostname in self.hosts_in_group(include):
                      limited_hosts[hostname] = self.hosts[hostname]
                  # Include individual host
                  if include in self.hosts:
                      limited_hosts[include] = self.hosts[include]
              # Find hosts and groups of hosts to exclude
              for exclude in self.limit["exclude"]:
                  # Exclude whole group
                  for hostname in self.hosts_in_group(exclude):
                      if hostname in limited_hosts:
                          limited_hosts.pop(hostname)
                  # Exclude individual host
                  if exclude in limited_hosts:
                      limited_hosts.pop(exclude)
  
              return limited_hosts
          else:
              # Return all hosts
              return self.hosts
docs: Return a list of parsed hosts info, with the limit applied if required.