code: def check_reprocessed_tags(words, input_tags, expected_tags):
      sentences = [list(zip(x, y)) for x, y in zip(words, input_tags)]
      retagged = utils.process_tags(sentences=sentences, scheme="bioes")
      # process_tags selectively returns tuples or strings based on the input
      # so we don't need to fiddle with the expected output format here
      expected_retagged = [
          list(zip(x, y)) for x, y in zip(words, expected_tags)
      ]
      assert retagged == expected_retagged
  
file_path: stanza/stanza/tests/ner/test_ner_utils.py
imports: import pytest
  from stanza.tests import *
  from stanza.models.common.vocab import EMPTY
  from stanza.models.ner import utils
label_desc: Use image node_id 2 for calling a global function with example usage: check_reprocessed_tags(words, input_tags, expected_tags) without return types