code: def parse_item(self, item):
          
          # append here just in case .get bellow fails
          self._parsed_logs.append(item)
  
          # make sure the log item is a dictionary object
          if isinstance(item, dict):
              lines = item.get("stream", "")
          else:
              lines = item
              item = None
  
          for line in lines.splitlines():
              line = line.strip()
              self._logs.append(line)
              if line:
                  logger.debug(line)
  
          if item is not None:
              self._error = item.get("error", None)
              self._error_detail = item.get("errorDetail", None)
              if self._error:
                  logger.error(item)
docs: :param item: dict, decoded log data