code: def swap_memory():
      '''
      .. versionadded:: 2014.7.0
  
      Return a dict that describes swap memory statistics.
  
      .. note::
  
          This function is only available in psutil version 0.6.0 and above.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' ps.swap_memory
      '''
      if psutil.version_info < (0, 6, 0):
          msg = 'swap_memory is only available in psutil 0.6.0 or greater'
          raise CommandExecutionError(msg)
      return dict(psutil.swap_memory()._asdict()f swap_memory():
      '''
      .. versionadded:: 2014.7.0
  
      Return a dict that describes swap memory statistics.
  
      .. note::
  
          This function is only available in psutil version 0.6.0 and above.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' ps.swap_memory
      '''
      if psutil.version_info < (0, 6, 0):
          msg = 'swap_memory is only available in psutil 0.6.0 or greater'
          raise CommandExecutionError(msg)
      return dict(psutil.swap_memory()._asdict())
docs: .. versionadded:: 2014.7.0
  
      Return a dict that describes swap memory statistics.
  
      .. note::
  
          This function is only available in psutil version 0.6.0 and above.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' ps.swap_memory