fn has_pyo3_module_declared<T: Parse>( attrs: &[Attribute], root_attribute_name: &str, is_module_option: impl Fn(&T) -> bool + Copy, ) -> Result<bool>