def METHOD_NAME(self):
    vqa_pipeline = pipeline("visual-question-answering", model="hf-internal-testing/tiny-vilt-random-vqa")
    image = "./tests/fixtures/tests_samples/COCO/000000039769.png"
    question = "How many cats are there?"
    outputs = vqa_pipeline(image=image, question="How many cats are there?", top_k=2)
    self.assertEqual(
        outputs, [{"score": ANY(float), "answer": ANY(str)}, {"score": ANY(float), "answer": ANY(str)}]
    )
    outputs = vqa_pipeline({"image": image, "question": question}, top_k=2)
    self.assertEqual(
        outputs, [{"score": ANY(float), "answer": ANY(str)}, {"score": ANY(float), "answer": ANY(str)}]
    )