pub fn log_extraction(ob: &Bound<'_, PyAny>, context: &str)
Utility function for consistent logging during Python object extraction.