The identifier session.video.active_context will sometimes return a callable type (usually <bound method ModernGlVideoDriver.active_context of <libretro.drivers.video.opengl.moderngl.ModernGlVideoDriver object...), sometimes a number (usually 0).
This is only being used in the MultiVideoDriver.reinit() method, but that has the potential to cause problems when setting a context.