code: def test_multiple_formats_771(tmpdir, cwd_tmpdir, python_notebook):
      tmpdir.join("jupytext.toml").write(
          """formats = "notebooks///ipynb,notebooks///py,scripts///py:percent"
  """
      )
      notebooks_dir = tmpdir.mkdir("notebooks")
      scripts_dir = tmpdir.join("scripts")
  
      write(python_notebook, str(notebooks_dir.join("notebook.ipynb")))
      jupytext(["--sync", "notebooks/notebook.ipynb"])
  
      assert notebooks_dir.join("notebook.py").isfile()
      assert scripts_dir.join("notebook.py").isfile()
  
      notebooks_dir.join("module.py").write("1 + 1\n")
      jupytext(["--sync", "notebooks/module.py"])
  
      assert notebooks_dir.join("module.ipynb").isfile()
      assert scripts_dir.join("module.py").isfile()
  
file_path: jupytext/tests/functional/cli/test_cli_config.py
imports: import nbformat
  import pytest
  from nbformat.v4.nbbase import new_code_cell, new_notebook
  from jupytext.cli import jupytext
  from jupytext.compare import compare
  from jupytext.header import header_to_metadata_and_cell
  from jupytext.jupytext import read, write
label_desc: Use image node_id 10 for calling a global function with example usage: test_multiple_formats_771(tmpdir, cwd_tmpdir, python_notebook) without return types