code: def test_no_duplicate_answer_filtering(bert_base_squad2):
      qa_input = [
          {
              "questions": ["“In what country lies the Normandy?”"],
              "text": """The Normans (Norman: Nourmands; French: Normands; Latin: Normanni) were the people who in the 10th and 11th centuries gave their name to Normandy, a region in France. They were descended from Norse (\"Norman\" comes from \"Norseman\") 
                      raiders and pirates from Denmark, Iceland and Norway who, under their leader Rollo, agreed to swear fealty to King Charles III of West Francia. Through generations of assimilation and mixing with the native Frankish and Roman-Gaulish populations, their descendants would gradually merge with the Carolingian-based cultures of West Francia. 
                      The distinct cultural and ethnic identity of the Normans emerged initially in the first half of the 10th century, and it continued to evolve over the succeeding centuries. Weird things happen in Normandy, France.""",
          }
      ]
  
      bert_base_squad2.model.prediction_heads[0].n_best = 5
      bert_base_squad2.model.prediction_heads[0].n_best_per_sample = 5
      bert_base_squad2.model.prediction_heads[
          0
      ].duplicate_filtering = -1
  
      result = bert_base_squad2.inference_from_dicts(dicts=qa_input)
      offset_answer_starts = []
      offset_answer_ends = []
      for answer in result[0]["predictions"][0]["answers"]:
          offset_answer_starts.append(answer["offset_answer_start"])
          offset_answer_ends.append(answer["offset_answer_end"])
  
      assert len(offset_answer_starts) != len(set(offset_answer_starts))
      assert len(offset_answer_ends) != len(set(offset_answer_ends))
  
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 14 for calling a global function with example usage: test_no_duplicate_answer_filtering(bert_base_squad2) without return types