code: def _wrap_callback_parse_event(on_data, message):
      
      if message.type == message.DATA:
          if message.data.type == yamcs_pb2.EVENT:
              event = Event(getattr(message.data, 'event'))
              #pylint: disable=protected-access
              on_data(event)
docs: Wraps a user callback to parse Events
      from a WebSocket data message