fn strip_generics_from_path(path_str: &str) -> Result<String, MalformedGenerics>