pub fn physical_codec_from_pycapsule( obj: &Bound<'_, PyAny>, ) -> PyResult<Arc<dyn PhysicalExtensionCodec>>