code: def test_configuration_examples_from_documentation(
      config_file, config_contents, python_notebook, tmp_path
  ):
      """Here we make sure that the config examples from
      https://jupytext.readthedocs.io/en/latest/config.html#configuring-paired-notebooks-globally
      just work
      """
      (tmp_path / config_file).write_text(config_contents)
      cm = jupytext.TextFileContentsManager()
      cm.root_dir = str(tmp_path)
  
      # Save the notebook
      (tmp_path / "notebooks").mkdir()
      cm.save(
          dict(type="notebook", content=python_notebook),
          "notebooks/nb.ipynb",
      )
  
      # Make sure that ipynb and text version are created
      assert (tmp_path / "notebooks" / "nb.ipynb").is_file()
      assert (
          (tmp_path / "notebooks" / "nb.py").is_file()
          or (tmp_path / "notebooks" / "nb.md").is_file()
          or (tmp_path / "scripts" / "nb.py").is_file()
      )
  
imports: import pytest
  from nbformat.v4.nbbase import new_notebook
  import jupytext
  from jupytext.compare import compare
  from jupytext.formats import JupytextFormatError, divine_format, get_format_implementation, guess_format, long_form_multiple_formats, read_format_from_metadata, rearrange_jupytext_metadata, short_form_multiple_formats, update_jupytext_formats_metadata, validate_one_format
label_desc: Use image node_id 28 for calling a global function with example usage: test_configuration_examples_from_documentation(config_file, config_contents, python_notebook, tmp_path) without return types