code: def test_raise_on_different_outputs(raise_on_first_difference):
      ref = new_notebook(cells=[new_code_cell("1+1")])
      test = new_notebook(
          cells=[
              new_code_cell(
                  "1+1",
                  outputs=[
                      {
                          "data": {"text/plain": ["2"]},
                          "execution_count": 1,
                          "metadata": {},
                          "output_type": "execute_result",
                      }
                  ],
              )
          ]
      )
      with pytest.raises(NotebookDifference):
          compare_notebooks(
              test,
              ref,
              "md",
              raise_on_first_difference=raise_on_first_difference,
              compare_outputs=True,
          )
  
imports: import pytest
  from nbformat.v4.nbbase import new_code_cell, new_markdown_cell, new_notebook, new_raw_cell
  from jupytext.compare import NotebookDifference, compare, compare_cells, compare_notebooks
  from jupytext.compare import test_round_trip_conversion
label_desc: Use image node_id 15 for calling a global function with example usage: test_raise_on_different_outputs(raise_on_first_difference) without return types