def METHOD_NAME(self):
    vqa_pipeline = pipeline("visual-question-answering", model="dandelin/vilt-b32-finetuned-vqa")
    image = "./tests/fixtures/tests_samples/COCO/000000039769.png"
    question = "How many cats are there?"
    outputs = vqa_pipeline(image=image, question=question, top_k=2)
    self.assertEqual(
        nested_simplify(outputs, decimals=4), [{"score": 0.8799, "answer": "2"}, {"score": 0.296, "answer": "1"}]
    )
    outputs = vqa_pipeline({"image": image, "question": question}, top_k=2)
    self.assertEqual(
        nested_simplify(outputs, decimals=4), [{"score": 0.8799, "answer": "2"}, {"score": 0.296, "answer": "1"}]
    )
    outputs = vqa_pipeline(
        [{"image": image, "question": question}, {"image": image, "question": question}], top_k=2
    )
    self.assertEqual(
        nested_simplify(outputs, decimals=4),
        [[{"score": 0.8799, "answer": "2"}, {"score": 0.296, "answer": "1"}]] * 2,
    )