code: def test_save_load_paired_qmd_notebook(ipynb_py_R_jl_file, tmpdir):
      if re.match(
          r".*(functional|Notebook with|plotly_graphs|flavors|complex_metadata|"
          "update83|raw_cell|_66|nteract|LaTeX|invalid|305|text_outputs|ir_notebook|jupyter|with_R_magic).*",
          ipynb_py_R_jl_file,
      ):
          pytest.skip()
      tmp_ipynb = "notebook.ipynb"
      tmp_qmd = "notebook.qmd"
  
      cm = jupytext.TextFileContentsManager()
      cm.root_dir = str(tmpdir)
  
      # open ipynb, save with cm, reopen
      nb = jupytext.read(ipynb_py_R_jl_file)
      nb.metadata["jupytext"] = {"formats": "ipynb,qmd"}
  
      cm.save(model=notebook_model(nb), path=tmp_ipynb)
      nb_md = cm.get(tmp_qmd)
  
      compare_notebooks(nb_md["content"], nb, "qmd")
      assert (
          nb_md["content"].metadata["jupytext"]["formats"]
          == "ipynb,qmd"
      )
  
imports: import re
  import pytest
  import jupytext
  from jupytext.compare import compare_notebooks, notebook_model
label_desc: Use image node_id 2 for calling a global function with example usage: test_save_load_paired_qmd_notebook(ipynb_py_R_jl_file, tmpdir) without return types