def METHOD_NAME(self):
    translator = pipeline("translation_en_to_de", model="patrickvonplaten/t5-tiny-random", framework="pt")
    outputs = translator("This is a test string", max_length=20)
    self.assertEqual(
        outputs,
        [
            {
                "translation_text": (
                    "monoton monoton monoton monoton monoton monoton monoton monoton monoton monoton urine urine"
                    " urine urine urine urine urine urine urine"
                )
            }
        ],
    )