docs: def build(format='qcow2', path='/tmp/'):
      '''
      Build an image from a current system description.
      The image is a system image can be output in bootable ISO or QCOW2 formats.
  
      Node uses the image building library Kiwi to perform the actual build.
  
      Parameters:
  
      * **format**: Specifies output format: "qcow2" or "iso. Default: `qcow2`.
      * **path**: Specifies output path where to store built image. Default: `/tmp`.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt myminion inspector.build
          salt myminion inspector.build format=iso path=/opt/builds/
      '''
      try:
          _("collector").Inspector(cachedir=__opts__['cachedir'],
                                   piddir=os.path.dirname(__opts__['pidfile']),
                                   pidfilename='').reuse_snapshot().build(format=format, path=path)
      except InspectorKiwiProcessorException as ex:
          raise CommandExecutionError(ex)
      except Exception as ex:
          log.error(_get_error_message(ex))
          raise Exception(ex)