code: def test_read_simple_file(
      script='''# -*- coding: utf-8 -*-
  """
  This is a markdown cell
  """
  
  1 + 2 + 3 + 4
  5
  6
  
  ""
  7
  
  #################################
  # Another markdown cell
  
  def f(x):
     """Sample docstring"""
     return 4
  ''',
  ):
      nb = jupytext.reads(script, "py:sphinx")
      assert nb.cells[0].cell_type == "code"
      assert nb.cells[0].source == "%matplotlib inline"
  
      assert nb.cells[1].cell_type == "markdown"
      assert nb.cells[1].source == "This is a markdown cell"
  
      assert nb.cells[2].cell_type == "code"
      compare(
          nb.cells[2].source,
          """1 + 2 + 3 + 4
  5
  6""",
      )
  
      assert nb.cells[3].cell_type == "code"
      assert nb.cells[3].source == "7"
  
      assert nb.cells[4].cell_type == "markdown"
      assert nb.cells[4].source == "Another markdown cell"
  
      assert nb.cells[5].cell_type == "code"
      assert (
          nb.cells[5].source
          == '''def f(x):
     """Sample docstring"""
     return 4'''
      )
      assert len(nb.cells) == 6
  
      script2 = jupytext.writes(nb, "py:sphinx")
      compare(script2, script)
  
imports: import jupytext
  from jupytext.compare import compare
label_desc: Use image node_id 1 for calling a global function with example usage: test_read_simple_file(script) without return types