code: def run_pipeline_test(self, dqa_pipeline, examples):
      outputs = dqa_pipeline(examples, top_k=2)
      self.assertEqual(
          outputs,
          [
              [
                  {
                      "score": ANY(float),
                      "answer": ANY(str),
                      "start": ANY(int),
                      "end": ANY(int),
                  },
                  {
                      "score": ANY(float),
                      "answer": ANY(str),
                      "start": ANY(int),
                      "end": ANY(int),
                  },
              ]
          ]
          * 3,
      )
  
file_path: transformers/tests/pipelines/test_pipelines_document_question_answering.py
imports: import unittest
  from transformers import MODEL_FOR_DOCUMENT_QUESTION_ANSWERING_MAPPING, AutoTokenizer, is_vision_available
  from transformers.pipelines import pipeline
  from transformers.pipelines.document_question_answering import apply_tesseract
  from transformers.testing_utils import is_pipeline_test, nested_simplify, require_detectron2, require_pytesseract, require_tf, require_torch, require_vision, slow
  from .test_pipelines_common import ANY
label_desc: Use image node_id 2 for calling the DocumentQuestionAnsweringPipelineTests obj's underlying member method code with example usage: obj.run_pipeline_test(dqa_pipeline, examples) without return types