code: def test_inference_different_inputs(bert_base_squad2):
      qa_format_1 = [
          {
              "questions": [
                  "Who counted the game among the best ever made?"
              ],
              "text": "Twilight Princess was released to universal critical acclaim and commercial success. It received perfect scores from major publications such as 1UP.com, Computer and Video Games, Electronic Gaming Monthly, Game Informer, GamesRadar, and GameSpy. On the review aggregators GameRankings and Metacritic, Twilight Princess has average scores of 95% and 95 for the Wii version and scores of 95% and 96 for the GameCube version. GameTrailers in their review called it one of the greatest games ever created.",
          }
      ]
      q = Question(
          text="Who counted the game among the best ever made?"
      )
      qa_format_2 = QAInput(
          questions=[q],
          doc_text="Twilight Princess was released to universal critical acclaim and commercial success. It received perfect scores from major publications such as 1UP.com, Computer and Video Games, Electronic Gaming Monthly, Game Informer, GamesRadar, and GameSpy. On the review aggregators GameRankings and Metacritic, Twilight Princess has average scores of 95% and 95 for the Wii version and scores of 95% and 96 for the GameCube version. GameTrailers in their review called it one of the greatest games ever created.",
      )
  
      result1 = bert_base_squad2.inference_from_dicts(dicts=qa_format_1)
      result2 = bert_base_squad2.inference_from_objects(
          objects=[qa_format_2]
      )
      assert result1 == result2
  
imports: import logging
  from pathlib import Path
  import pytest
  from math import isclose
  import numpy
  from farm.data_handler.processor import SquadProcessor
  from farm.modeling.adaptive_model import AdaptiveModel
  from farm.infer import QAInferencer
  from farm.data_handler.inputs import QAInput, Question
label_desc: Use image node_id 3 for calling a global function with example usage: test_inference_different_inputs(bert_base_squad2) without return types