code: def test_no_rmd_on_not_v4(tmpdir):
      tmp_ipynb = "notebook.ipynb"
      tmp_rmd = "notebook.Rmd"
  
      cm = TextFileContentsManager()
      cm.root_dir = str(tmpdir)
      cm.formats = "ipynb,Rmd"
  
      with pytest.raises(NotebookValidationError):
          cm.save(
              model=notebook_model(new_notebook(nbformat=3)),
              path=tmp_rmd,
          )
  
      assert not os.path.isfile(str(tmpdir.join(tmp_ipynb)))
  
file_path: jupytext/tests/functional/others/test_save_multiple.py
imports: import os
  import pytest
  from nbformat.v4.nbbase import new_notebook
  from nbformat.validator import NotebookValidationError
  from tornado.web import HTTPError
  import jupytext
  from jupytext.compare import compare_notebooks, notebook_model
  from jupytext.contentsmanager import TextFileContentsManager
label_desc: Use image node_id 7 for calling a global function with example usage: test_no_rmd_on_not_v4(tmpdir) without return types