Add utilities wrapping a text-to-image model.
Add utilities wrapping a text-to-image model.

PiperOrigin-RevId: 452776641

google-research/google-research,google-research/google-research,google-research/google-research,google-research/google-research,google-research/google-research,google-research/google-research,google-research/google-research,google-research/google-research,google-research/google-research,google-research/google-research,google-research/google-research