code: def test_end_pos(each_version):
      s = dedent(
          """
                 x = ['a', 'b', 'c']
                 def func():
                     y = None
                 """
      )
      parser = parse(s, version=each_version)
      scope = next(parser.iter_funcdefs())
      assert scope.start_pos == (3, 0)
      assert scope.end_pos == (5, 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 4 for calling a global function with example usage: test_end_pos(each_version) without return types