code: def test_simple_prefix_splitting(string, tokens):
      tree = parso.parse(string)
      leaf = tree.children[0]
      assert leaf.type == "endmarker"
  
      parsed_tokens = list(leaf._split_prefix())
      start_pos = (1, 0)
      for pt, expected in zip_longest(parsed_tokens, tokens):
          assert pt.value == expected
  
          # Calculate the estimated end_pos
          if expected.endswith("\n"):
              end_pos = start_pos[0] + 1, 0
          else:
              end_pos = start_pos[0], start_pos[1] + len(
                  expected
              ) + len(pt.spacing)
  
          # assert start_pos == pt.start_pos
          assert end_pos == pt.end_pos
          start_pos = end_pos
  
imports: from codecs import BOM_UTF8
  import pytest
  import parso
label_desc: Use image node_id 1 for calling a global function with example usage: test_simple_prefix_splitting(string, tokens) without return types