code: def capabilities(**kwargs):
      '''
      Return the hypervisor connection capabilities.
  
      :param connection: libvirt connection URI, overriding defaults
      :param username: username to connect with, overriding defaults
      :param password: password to connect with, overriding defaults
  
      .. versionadded:: 2019.2.0
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' virt.capabilities
      '''
      conn = __get_conn(**kwargs)
      caps = ElementTree.fromstring(conn.getCapabilities())
      conn.close()
  
      return {
          'host': _parse_caps_host(caps.find('host')),
          'guests': [_parse_caps_guest(guest) for guest in caps.findall('guest')]
      f capabilities(**kwargs):
      '''
      Return the hypervisor connection capabilities.
  
      :param connection: libvirt connection URI, overriding defaults
      :param username: username to connect with, overriding defaults
      :param password: password to connect with, overriding defaults
  
      .. versionadded:: 2019.2.0
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' virt.capabilities
      '''
      conn = __get_conn(**kwargs)
      caps = ElementTree.fromstring(conn.getCapabilities())
      conn.close()
  
      return {
          'host': _parse_caps_host(caps.find('host')),
          'guests': [_parse_caps_guest(guest) for guest in caps.findall('guest')]
      }
docs: Return the hypervisor connection capabilities.
  
      :param connection: libvirt connection URI, overriding defaults
      :param username: username to connect with, overriding defaults
      :param password: password to connect with, overriding defaults
  
      .. versionadded:: 2019.2.0
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' virt.capabilities