code: def test_pipe(
      capsys,
      engine,
      format_,
      renderer,
      formatter,
      pattern,
      data=b"graph { spam }",
  ):
      with pytest.deprecated_call():
          out = graphviz.pipe(
              engine, format_, data, renderer, formatter
          ).decode("ascii")
  
      if pattern is not None:
          assert re.match(pattern, out)
      assert capsys.readouterr() == ("", "")
  
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 3 for calling a global function with example usage: test_pipe(capsys, engine, format_, renderer, formatter, pattern, data) without return types