fn read_agents_file_from_iter<I>( iter: I, commodities: &HashMap<Rc<str>, Rc<Commodity>>, process_ids: &HashSet<Rc<str>>, ) -> Result<HashMap<Rc<str>, Agent>>where I: Iterator<Item = AgentRaw>,
Read agents info from an iterator.