pub fn parse_subunit<T: Read>(reader: T) -> Result<Vec<Event>, Box<dyn Error>>