pub fn pythonize_custom<'py, P, T>( py: Python<'py>, value: &T, ) -> Result<Bound<'py, PyAny>>where T: ?Sized + Serialize, P: PythonizeTypes,
Attempt to convert the given data into a Python object. Also uses custom mapping python class for serialization.