code: def _resolve_capabilities(pkgs, refresh=False, **kwargs):
      '''
      Resolve capabilities in ``pkgs`` and exchange them with real package
      names, when the result is distinct.
      This feature can be turned on while setting the paramter
      ``resolve_capabilities`` to True.
  
      Return the input dictionary with replaced capability names and as
      second return value a bool which say if a refresh need to be run.
  
      In case of ``resolve_capabilities`` is False (disabled) or not
      supported by the implementation the input is returned unchanged.
      '''
      if not pkgs or 'pkg.resolve_capabilities' not in __salt__:
          return pkgs, refresh
  
      ret = __salt__['pkg.resolve_capabilities'](pkgs, refresh=refresh, **kwargs)
      return ret, Falsf _resolve_capabilities(pkgs, refresh=False, **kwargs):
      '''
      Resolve capabilities in ``pkgs`` and exchange them with real package
      names, when the result is distinct.
      This feature can be turned on while setting the paramter
      ``resolve_capabilities`` to True.
  
      Return the input dictionary with replaced capability names and as
      second return value a bool which say if a refresh need to be run.
  
      In case of ``resolve_capabilities`` is False (disabled) or not
      supported by the implementation the input is returned unchanged.
      '''
      if not pkgs or 'pkg.resolve_capabilities' not in __salt__:
          return pkgs, refresh
  
      ret = __salt__['pkg.resolve_capabilities'](pkgs, refresh=refresh, **kwargs)
      return ret, False
docs: Resolve capabilities in ``pkgs`` and exchange them with real package
      names, when the result is distinct.
      This feature can be turned on while setting the paramter
      ``resolve_capabilities`` to True.
  
      Return the input dictionary with replaced capability names and as
      second return value a bool which say if a refresh need to be run.
  
      In case of ``resolve_capabilities`` is False (disabled) or not
      supported by the implementation the input is returned unchanged.