docs: def custom_check(cmd, ignore_retcode=False):
      """Run command, collect output, raise error if needed.
      """
      p = custom_popen(cmd)
      out, _ = p.communicate()
      if p.returncode and not ignore_retcode:
          raise RarExecError("Check-run failed")
      return out