code: def test_combine_refactor():
      nb_source = new_notebook(
          cells=[
              new_code_cell("a=1"),
              new_code_cell("a+1"),
              new_code_cell("a+2"),
          ]
      )
  
      nb_outputs = new_notebook(
          cells=[
              new_code_cell("b=1"),
              new_code_cell("b+1"),
              new_code_cell("b+2"),
          ]
      )
  
      nb_outputs.cells[1].outputs = ["2"]
      nb_outputs.cells[2].outputs = ["3"]
  
      nb_source = combine_inputs_with_outputs(nb_source, nb_outputs)
  
      assert nb_source.cells[0].outputs == []
      assert nb_source.cells[1].outputs == ["2"]
      assert nb_source.cells[2].outputs == ["3"]
  
file_path: jupytext/tests/functional/others/test_combine.py
imports: from copy import deepcopy
  from nbformat.v4.nbbase import new_code_cell, new_markdown_cell, new_notebook
  import jupytext
  from jupytext.combine import combine_inputs_with_outputs
  from jupytext.compare import compare, compare_notebooks
label_desc: Use image node_id 6 for calling a global function with example usage: test_combine_refactor() without return types