code: def find_guests(names, path=None):
      '''
      Return a dict of hosts and named guests
  
      path
          path to the container parent
          default: /var/lib/lxc (system default)
  
          .. versionadded:: 2015.8.0
  
      '''
      ret = {}
      names = names.split(',')
      for data in _list_iter(path=path):
          host, stat = next(six.iteritems(data))
          for state in stat:
              for name in stat[state]:
                  if name in names:
                      if host in ret:
                          ret[host].append(name)
                      else:
                          ret[host] = [name]
      return ref find_guests(names, path=None):
      '''
      Return a dict of hosts and named guests
  
      path
          path to the container parent
          default: /var/lib/lxc (system default)
  
          .. versionadded:: 2015.8.0
  
      '''
      ret = {}
      names = names.split(',')
      for data in _list_iter(path=path):
          host, stat = next(six.iteritems(data))
          for state in stat:
              for name in stat[state]:
                  if name in names:
                      if host in ret:
                          ret[host].append(name)
                      else:
                          ret[host] = [name]
      return ret
docs: Return a dict of hosts and named guests
  
      path
          path to the container parent
          default: /var/lib/lxc (system default)
  
          .. versionadded:: 2015.8.0