code: def version():
      
      cmd = ['dot', '-V']
      out, _ = run(cmd, check=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
  
      info = out.decode('ascii')
      ma = re.search(r'graphviz version (\d+\.\d+(?:\.\d+)?) ', info)
      if ma is None:
          raise RuntimeError
      return tuple(int(d) for d in ma.group(1).split('.'))
docs: Return the version number tuple from the ``stderr`` output of ``dot -V``.
  
      Returns:
          Two or three ``int`` version ``tuple``.
      Raises:
          graphviz.ExecutableNotFound: If the Graphviz executable is not found.
          subprocess.CalledProcessError: If the exit status is non-zero.
          RuntimmeError: If the output cannot be parsed into a version number.