pub(crate) fn parse_cos_map( py: Python<'_>, cos_dict: &PyObject, ) -> PyResult<HashMap<String, CosMapItem>>