code: def test_pep8_lines_between_cells_ter():
      prev_lines = [
          "from jupytext.cell_to_text import RMarkdownCellExporter"
      ]
  
      next_lines = '''@pytest.mark.parametrize(
      "lines",
      [
          "# text",
          """# # %%R
  # # comment
  # 1 + 1
  # 2 + 2
  """,
      ],
  )
  def test_paragraph_is_fully_commented(lines):
      assert paragraph_is_fully_commented(
          lines.splitlines(), comment="#", main_language="python"
      )'''.splitlines()
  
      assert cell_ends_with_code(prev_lines)
      assert next_instruction_is_function_or_class(next_lines)
      assert (
          pep8_lines_between_cells(prev_lines, next_lines, ".py") == 2
      )
  
file_path: jupytext/tests/unit/test_pep8.py
imports: from nbformat.v4.nbbase import new_code_cell, new_notebook
  from jupytext import read, reads, writes
  from jupytext.compare import compare
  from jupytext.pep8 import cell_ends_with_code, cell_ends_with_function_or_class, cell_has_code, next_instruction_is_function_or_class, pep8_lines_between_cells
label_desc: Use image node_id 6 for calling a global function with example usage: test_pep8_lines_between_cells_ter() without return types