code: def test_pipe_black_preserve_outputs(
      notebook_with_outputs, tmpdir, cwd_tmpdir, capsys
  ):
      write(notebook_with_outputs, "test.ipynb")
      jupytext(["--pipe", "black", "test.ipynb"])
  
      # Outputs are preserved
      nb = read("test.ipynb")
      expected = deepcopy(notebook_with_outputs)
      expected.cells[0].source = "1 + 1"
      compare_notebooks(nb, expected)
  
      # No mention of --update
      out, err = capsys.readouterr()
      assert not err
      assert "replaced" not in out
      assert "--update" not in out
  
imports: import os
  from copy import deepcopy
  from shutil import copyfile
  import pytest
  from nbformat.v4.nbbase import new_code_cell, new_notebook
  from jupytext import read, write
  from jupytext.cli import jupytext, pipe_notebook, system
  from jupytext.combine import black_invariant
  from jupytext.compare import compare, compare_cells, compare_notebooks
  from jupytext.header import _DEFAULT_NOTEBOOK_METADATA
label_desc: Use image node_id 12 for calling a global function with example usage: test_pipe_black_preserve_outputs(notebook_with_outputs, tmpdir, cwd_tmpdir, capsys) without return types