code: def test_pairing_through_config_leaves_ipynb_unmodified(tmpdir):
      cm = jupytext.TextFileContentsManager()
      cm.root_dir = str(tmpdir)
  
      cfg_file = tmpdir.join("jupytext.yml")
      nb_file = tmpdir.join("notebook.ipynb")
      py_file = tmpdir.join("notebook.py")
  
      cfg_file.write("formats: 'ipynb,py'\n")
  
      cm.save(notebook_model(SAMPLE_NOTEBOOK), "notebook.ipynb")
      assert nb_file.isfile()
      assert py_file.isfile()
  
      nb = read(nb_file, as_version=4)
      assert "jupytext" not in nb.metadata
  
imports: import logging
  import os
  import sys
  import unittest.mock
  import pytest
  from nbformat import read
  from nbformat.v4.nbbase import new_code_cell, new_markdown_cell, new_notebook
  from tornado.web import HTTPError
  import jupytext
  from jupytext import TextFileContentsManager
  from jupytext.compare import compare_cells, notebook_model
label_desc: Use image node_id 3 for calling a global function with example usage: test_pairing_through_config_leaves_ipynb_unmodified(tmpdir) without return types