src/transformers/models/flava/modeling_flava.py/FlavaModelOutput/to_tuple
class FlavaModelOutput:    def to_tuple(self) -> Tuple[Any]:
        return tuple(
            self[k] if k not in ["text_output", "image_output", "multimodal_output"] else getattr(self, k).to_tuple()
            for k in self.keys()
        )