code: def test_write_reload_simple_notebook():
      nb1 = new_notebook(
          cells=[
              new_markdown_cell(
                  "A markdown cell", metadata={"md": "value"}
              ),
              new_code_cell("1 + 1"),
              new_markdown_cell(
                  "A markdown cell", metadata={"md": "value"}
              ),
              new_code_cell(
                  """def f(x):
      return x""",
                  metadata={"md": "value"},
              ),
              new_markdown_cell(
                  "A markdown cell", metadata={"md": "value"}
              ),
              new_code_cell(
                  """def g(x):
      return x
  
  
  def h(x):
      return x
  """,
                  metadata={"md": "value"},
              ),
          ]
      )
  
      text = writes(nb1, "py:nomarker")
      nb2 = reads(text, "py:nomarker")
      nb2 = combine_inputs_with_outputs(nb2, nb1, "py:nomarker")
      nb2.metadata.pop("jupytext")
  
      assert len(nb2.cells) == 7
      nb1.cells = nb1.cells[:5]
      nb2.cells = nb2.cells[:5]
      compare(nb2, nb1)
  
      with pytest.warns(DeprecationWarning, match="nomarker"):
          text = writes(nb2, "py:bare")
      with pytest.warns(DeprecationWarning, match="nomarker"):
          nb3 = reads(text, "py:bare")
      with pytest.warns(DeprecationWarning, match="nomarker"):
          nb3 = combine_inputs_with_outputs(nb3, nb2, "py:bare")
      nb3.metadata.pop("jupytext")
  
      compare(nb3, nb2)
  
file_path: jupytext/tests/functional/simple_notebooks/test_read_simple_nomarker.py
imports: import os
  import pytest
  from nbformat.v4.nbbase import new_code_cell, new_markdown_cell, new_notebook
  from jupytext import reads, write, writes
  from jupytext.cli import jupytext
  from jupytext.combine import combine_inputs_with_outputs
  from jupytext.compare import compare
label_desc: Use image node_id 1 for calling a global function with example usage: test_write_reload_simple_notebook() without return types