code: def test_large_model_pt_donut(self):
      dqa_pipeline = pipeline(
          "document-question-answering",
          model="naver-clova-ix/donut-base-finetuned-docvqa",
          tokenizer=AutoTokenizer.from_pretrained(
              "naver-clova-ix/donut-base-finetuned-docvqa"
          ),
          feature_extractor="naver-clova-ix/donut-base-finetuned-docvqa",
      )
  
      image = INVOICE_URL
      question = "What is the invoice number?"
      outputs = dqa_pipeline(image=image, question=question, top_k=2)
      self.assertEqual(
          nested_simplify(outputs, decimals=4), [{"answer": "us-001"}]
      )
  
file_path: H2O/h2o_flexgen/benchmark/third_party/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 nested_simplify, require_detectron2, require_pytesseract, require_tf, require_torch, require_vision, slow
  from .test_pipelines_common import ANY, PipelineTestCaseMeta
label_desc: Use image node_id 8 for calling the DocumentQuestionAnsweringPipelineTests obj's underlying member method code with example usage: obj.test_large_model_pt_donut() without return types