<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def render(engine, format, filepath, renderer=None, formatter=None, quiet=False):
 """Render file with Graphviz ``engine`` into ``format``, return result filename. Args: filepath: Path to the DOT source file to render. 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. """

    cmd, rendered = command(engine, format, filepath, renderer, formatter)
    run(cmd, capture_output=True, check=True, quiet=quiet)
    return rendered