    def is_conditioned(self) -> bool:
        """Check whether the layer is conditioned."""
        return self.vis_x is not None and self.media_locations is not None
Check whether the layer is conditioned.
open_flamingo/src/flamingo_lm.py