code: def test_test_no_text_representation_metadata_in_ipynb_900(
      tmpdir,
      python_notebook,
  ):
      tmpdir.join("jupytext.toml").write(
          'formats = "ipynb,py:percent"\n'
      )
  
      # create a test notebook and save it in Jupyter
      nb = python_notebook
      cm = TextFileContentsManager()
      cm.root_dir = str(tmpdir)
      cm.save(dict(type="notebook", content=nb), "test.ipynb")
  
      # Assert that "text_representation" is in the Jupytext metadata #900
      assert "text_representation" in tmpdir.join("test.py").read()
      # But not in the ipynb notebook
      assert (
          "text_representation" not in tmpdir.join("test.ipynb").read()
      )
  
      # modify the ipynb file in Jupyter
      # Reload the notebook
      nb = cm.get("test.ipynb")["content"]
      nb.cells.append(new_markdown_cell("A new cell"))
      cm.save(dict(type="notebook", content=nb), "test.ipynb")
  
      # The text representation metadata is in the py file
      assert "text_representation" in tmpdir.join("test.py").read()
      # But not in the ipynb notebook
      assert (
          "text_representation" not in tmpdir.join("test.ipynb").read()
      )
  
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 8 for calling a global function with example usage: test_test_no_text_representation_metadata_in_ipynb_900(tmpdir, python_notebook) without return types