code: def testGameEvents(self):
      events = list(self._replay.game_events())
      event_types = set(s["_event"] for s in events)
  
      self.assertEqual(
          event_types,
          {
              "NNet.Game.SCameraUpdateEvent",
              "NNet.Game.SCmdEvent",
              "NNet.Game.SCmdUpdateTargetPointEvent",
              "NNet.Game.SCmdUpdateTargetUnitEvent",
              "NNet.Game.SCommandManagerStateEvent",
              "NNet.Game.SPeerSetSyncLoadingTimeEvent",
              "NNet.Game.SPeerSetSyncPlayingTimeEvent",
              "NNet.Game.SSelectionDeltaEvent",
              "NNet.Game.SUserFinishedLoadingSyncEvent",
              "NNet.Game.SUserOptionsEvent",
          },
      )
  
file_path: pysc2/pysc2/lib/replay/sc2_replay_test.py
imports: from absl import flags
  from absl.testing import absltest
  from pysc2.lib.replay import sc2_replay
  from pysc2.lib import gfile
  from pysc2.lib import resources
label_desc: Use image node_id 5 for calling the Sc2ReplayTest obj's underlying member method code with example usage: obj.testGameEvents() without return types