"The captions should be in English and should be no longer than 150 characters." Here, we’re interested in the “cat -> dog” direction. 3. Generate captions: We can use a utility like so for this purpose.   Copied def generate_captions(input_prompt):