code: def test_text_to_cell_py2():
      text = """def f(x):
      return x+1"""
      lines = text.splitlines()
      cell, pos = LightScriptCellReader().read(lines)
      assert cell.cell_type == "code"
      assert cell.source == """def f(x):\n    return x+1"""
      assert cell.metadata == {}
      assert pos == 2
  
file_path: jupytext/tests/functional/others/test_cells.py
imports: import pytest
  from nbformat.v4.nbbase import new_markdown_cell
  from jupytext.cell_reader import LightScriptCellReader, RMarkdownCellReader, paragraph_is_fully_commented, uncomment
  from jupytext.cell_to_text import RMarkdownCellExporter
label_desc: Use image node_id 13 for calling a global function with example usage: test_text_to_cell_py2() without return types