code: def test_parse_tagged_words(pretrain_file):
      """
      Small test which doesn't check results, just execution
      """
      model = build_model(pretrain_file)
  
      sentence = [("I", "PRP"), ("am", "VBZ"), ("Luffa", "NNP")]
  
      # we don't expect a useful tree out of a random model
      # so we don't check the result
      # just check that it works without crashing
      result = model.parse_tagged_words([sentence], 10)
      assert len(result) == 1
      pts = [x for x in result[0].yield_preterminals()]
  
      for word, pt in zip(sentence, pts):
          assert pt.children[0].label == word[0]
          assert pt.label == word[1]
  
imports: import os
  import pytest
  import torch
  from stanza.models.common import pretrain
  from stanza.models.common.utils import set_random_seed
  from stanza.models.constituency import parse_transitions
  from stanza.tests import *
  from stanza.tests.constituency import test_parse_transitions
  from stanza.tests.constituency.test_trainer import build_trainer
label_desc: Use image node_id 44 for calling a global function with example usage: test_parse_tagged_words(pretrain_file) without return types