code: def test_save_load_paired_md_pandoc_notebook(
      ipynb_py_R_jl_file, tmpdir
  ):
      if re.match(
          r".*(functional|Notebook with|flavors|invalid|305).*",
          ipynb_py_R_jl_file,
      ):
          pytest.skip()
      tmp_ipynb = "notebook.ipynb"
      tmp_md = "notebook.md"
  
      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,md:pandoc"}
  
      cm.save(model=notebook_model(nb), path=tmp_ipynb)
      nb_md = cm.get(tmp_md)
  
      compare_notebooks(nb_md["content"], nb, "md:pandoc")
      assert (
          nb_md["content"].metadata["jupytext"]["formats"]
          == "ipynb,md:pandoc"
      )
  
imports: import re
  import pytest
  import jupytext
  from jupytext.compare import compare_notebooks, notebook_model
label_desc: Use image node_id 1 for calling a global function with example usage: test_save_load_paired_md_pandoc_notebook(ipynb_py_R_jl_file, tmpdir) without return types