def METHOD_NAME(self):
    model = "patrickvonplaten/t5-tiny-random"
    translator = pipeline(task="translation_cn_to_ar", model=model)
    self.assertEqual(translator._preprocess_params["src_lang"], "cn")
    self.assertEqual(translator._preprocess_params["tgt_lang"], "ar")