code: def ParseRecord(self, parser_mediator, key, structure):
      
      if key != 'line':
        raise errors.ParseError(
            'Unable to parse record, unknown structure: {0:s}'.format(key))
  
      try:
        date_time = dfdatetime_time_elements.TimeElements(
            time_elements_tuple=structure.date_time)
      except ValueError:
        parser_mediator.ProduceExtractionWarning(
            'invalid date time value: {0!s}'.format(structure.date_time))
        return
  
      body_text = structure.body
      if not body_text:
        parser_mediator.ProduceExtractionWarning(
            'invalid body {0:s}'.format(structure.body))
        return
  
      event_data = DpkgEventData()
      event_data.body = body_text
  
      event = time_events.DateTimeValuesEvent(
          date_time, definitions.TIME_DESCRIPTION_ADDED)
      parser_mediator.ProduceEventWithEventData(event, event_data)
docs: Parses a structure of tokens derived from a line of a text file.
  
      Args:
        parser_mediator (ParserMediator): parser mediator.
        key (str): identifier of the structure of tokens.
        structure (pyparsing.ParseResults): structure of tokens derived from
            a line of a text file.
  
      Raises:
        ParseError: when the structure type is unknown.