code: def test_end_pos_line(each_version):
      # jedi issue #150
      s = "x()\nx( )\nx(  )\nx (  )\n"
  
      module = parse(s, version=each_version)
      for i, simple_stmt in enumerate(module.children[:-1]):
          expr_stmt = simple_stmt.children[0]
          assert expr_stmt.end_pos == (i + 1, i + 3)
  
imports: from textwrap import dedent
  import pytest
  from parso import parse
  from parso.python import tree
  from parso.tree import search_ancestor
label_desc: Use image node_id 1 for calling a global function with example usage: test_end_pos_line(each_version) without return types