parameters: (frames: List[bytes])
docstring: Create an object from a zmq frame.
  
      The frame must have two entries: a topic, a json serialized Event
      object.
  
      :raises: MalformedFrame
docstring_summary: Create an object from a zmq frame.
docstring_tokens: Create an object from a zmq frame .
function: def from_frames(frames: List[bytes]) -> TopicEvent:
      """
      Create an object from a zmq frame.
  
      The frame must have two entries: a topic, a json serialized Event
      object.
  
      :raises: MalformedFrame
      """
      try:
          return TopicEvent(
              topic=frames[0].decode("utf-8"), event=Event.parse_raw((frames[1]))
          )
      except (ValueError, IndexError, AttributeError) as e:
          raise MalformedFrames() from e
function_tokens: def from_frames ( frames : List [ bytes ] ) -> TopicEvent : try : return TopicEvent ( topic = frames [ 0 ] . decode ( "utf-8" ) , event = Event . parse_raw ( ( frames [ 1 ] ) ) ) except ( ValueError , IndexError , AttributeError ) as e : raise MalformedFrames ( ) from e