code: def test_all_transitions():
      text = "((SBARQ (WHNP (WP Who)) (SQ (VP (VBZ sits) (PP (IN in) (NP (DT this) (NN seat))))) (. ?)))"
      trees = tree_reader.read_trees(text)
      model = SimpleModel()
      transitions = transition_sequence.build_treebank(trees)
  
      expected = [
          Shift(),
          CloseConstituent(),
          CompoundUnary("ROOT"),
          CompoundUnary("SQ"),
          CompoundUnary("WHNP"),
          OpenConstituent("NP"),
          OpenConstituent("PP"),
          OpenConstituent("SBARQ"),
          OpenConstituent("VP"),
      ]
      assert (
          transition_sequence.all_transitions(transitions) == expected
      )
  
imports: import pytest
  from stanza.models.constituency import parse_transitions
  from stanza.models.constituency import transition_sequence
  from stanza.models.constituency import tree_reader
  from stanza.models.constituency.base_model import SimpleModel, UNARY_LIMIT
  from stanza.models.constituency.parse_transitions import *
  from stanza.tests import *
  from stanza.tests.constituency.test_parse_tree import CHINESE_LONG_LIST_TREE
label_desc: Use image node_id 8 for calling a global function with example usage: test_all_transitions() without return types