code: def test_notebook_two_blank_lines_before_next_cell(
      script="""# +
  # This is cell with a function
  
  def f(x):
      return 4
  
  
  # +
  # Another cell
  c = 5
  
  
  def g(x):
      return 6
  
  
  # +
  # Final cell
  
  1 + 1
  """,
  ):
      notebook = jupytext.reads(script, "py")
      assert len(notebook.cells) == 3
      for cell in notebook.cells:
          lines = cell.source.splitlines()
          if len(lines) != 1:
              assert lines[0]
              assert lines[-1]
  
      script2 = jupytext.writes(notebook, "py")
  
      compare(script2, script)
  
imports: import pytest
  from nbformat.v4.nbbase import new_code_cell, new_markdown_cell, new_notebook, new_raw_cell
  import jupytext
  from jupytext.compare import compare, compare_notebooks
label_desc: Use image node_id 25 for calling a global function with example usage: test_notebook_two_blank_lines_before_next_cell(script) without return types