code: def test_hashes():
      transitions = set()
  
      shift = parse_transitions.Shift()
      assert shift not in transitions
      transitions.add(shift)
      assert shift in transitions
      shift = parse_transitions.Shift()
      assert shift in transitions
  
      for i in range(5):
          transitions.add(shift)
      assert len(transitions) == 1
  
      unary = parse_transitions.CompoundUnary("asdf")
      assert unary not in transitions
      transitions.add(unary)
      assert unary in transitions
  
      unary = parse_transitions.CompoundUnary("asdf", "zzzz")
      assert unary not in transitions
      transitions.add(unary)
      transitions.add(unary)
      transitions.add(unary)
      unary = parse_transitions.CompoundUnary("asdf", "zzzz")
      assert unary in transitions
  
      oc = parse_transitions.OpenConstituent("asdf")
      assert oc not in transitions
      transitions.add(oc)
      assert oc in transitions
      transitions.add(oc)
      transitions.add(oc)
      assert len(transitions) == 4
      assert parse_transitions.OpenConstituent("asdf") in transitions
  
      cc = parse_transitions.CloseConstituent()
      assert cc not in transitions
      transitions.add(cc)
      transitions.add(cc)
      transitions.add(cc)
      assert cc in transitions
      cc = parse_transitions.CloseConstituent()
      assert cc in transitions
      assert len(transitions) == 5
  
imports: import pytest
  from stanza.models.constituency import parse_transitions
  from stanza.models.constituency.base_model import SimpleModel, UNARY_LIMIT
  from stanza.models.constituency.parse_transitions import TransitionScheme, Shift, CloseConstituent, OpenConstituent
  from stanza.tests import *
label_desc: Use image node_id 14 for calling a global function with example usage: test_hashes() without return types