code: def check_event(self, *choices):
      # Check the type of the next event.
      if self.current_event is None:
          if self.state:
              self.current_event = self.state()
      if self.current_event is not None:
          if not choices:
              return True
          for choice in choices:
              if isinstance(self.current_event, choice):
                  return True
      return False
  
imports: from .error import MarkedYAMLError
  from .tokens import *
  from .events import *
  from .scanner import *
label_desc: Use image node_id 3 for calling the Parser obj's underlying member method code with example usage: obj.check_event() and returns: False, True, True