code: def test_pipe_invalid_data(
      capsys, quiet, engine="dot", format_="svg"
  ):
      with pytest.raises(subprocess.CalledProcessError) as e:
          graphviz.pipe(engine, format_, b"nongraph", quiet=quiet)
  
      assert e.value.returncode == 1
      assert "syntax error in line" in str(e.value)
      out, err = capsys.readouterr()
      assert out == ""
      if quiet:
          assert err == ""
      else:
          assert "syntax error in line" in err
  
file_path: graphviz/tests/backend/test_piping.py
imports: import io
  import re
  import subprocess
  import pytest
  import graphviz
  import _common
label_desc: Use image node_id 1 for calling a global function with example usage: test_pipe_invalid_data(capsys, quiet, engine, format_) without return types