code: def test_combine_attachments():
      nb_source = new_notebook(
          cells=[
              new_markdown_cell("![image.png](attachment:image.png)")
          ]
      )
  
      nb_outputs = new_notebook(
          cells=[
              new_markdown_cell(
                  "![image.png](attachment:image.png)",
                  attachments={
                      "image.png": {
                          "image/png": "SOME_LONG_IMAGE_CODE...=="
                      }
                  },
              )
          ]
      )
  
      nb_source = combine_inputs_with_outputs(nb_source, nb_outputs)
      compare(nb_source, nb_outputs)
  
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 7 for calling a global function with example usage: test_combine_attachments() without return types