code: def test_incorrect_config_message(tmpdir, cfg_file, cfg_text):
      cm = jupytext.TextFileContentsManager()
      cm.root_dir = str(tmpdir)
  
      tmpdir.join(cfg_file).write(cfg_text)
      tmpdir.join("empty.ipynb").write("{}")
  
      expected_message = (
          "The Jupytext configuration file .*{} is incorrect".format(
              cfg_file
          )
      )
  
      with pytest.raises(HTTPError, match=expected_message):
          cm.get("empty.ipynb", type="notebook", content=False)
  
      with pytest.raises(HTTPError, match=expected_message):
          cm.save(notebook_model(SAMPLE_NOTEBOOK), "notebook.ipynb")
  
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 4 for calling a global function with example usage: test_incorrect_config_message(tmpdir, cfg_file, cfg_text) without return types