code: def render(engine, format, filepath, renderer=None, formatter=None, quiet=False):
      
      cmd, rendered = command(engine, format, filepath, renderer, formatter)
      run(cmd, capture_output=True, check=True, quiet=quiet)
      return rendered
docs: Render file with Graphviz ``engine`` into ``format``,  return result filename.
  
      Args:
          engine: The layout commmand used for rendering (``'dot'``, ``'neato'``, ...).
          format: The output format used for rendering (``'pdf'``, ``'png'``, ...).
          filepath: Path to the DOT source file to render.
          renderer: The output renderer used for rendering (``'cairo'``, ``'gd'``, ...).
          formatter: The output formatter used for rendering (``'cairo'``, ``'gd'``, ...).
          quiet (bool): Suppress ``stderr`` output.
      Returns:
          The (possibly relative) path of the rendered file.
      Raises:
          ValueError: If ``engine``, ``format``, ``renderer``, or ``formatter`` are not known.
          graphviz.RequiredArgumentError: If ``formatter`` is given but ``renderer`` is None.
          graphviz.ExecutableNotFound: If the Graphviz executable is not found.
          subprocess.CalledProcessError: If the exit status is non-zero.