code: def test_newline_positions(each_version):
      endmarker = parse("a\n", version=each_version).children[-1]
      assert endmarker.end_pos == (2, 0)
      new_line = endmarker.get_previous_leaf()
      assert new_line.start_pos == (1, 1)
      assert new_line.end_pos == (2, 0)
  
imports: from textwrap import dedent
  import pytest
  from parso import parse
  from parso.python import tree
  from parso.utils import split_lines
label_desc: Use image node_id 7 for calling a global function with example usage: test_newline_positions(each_version) without return types