code: def apply_no_ans_threshold(
      scores, na_probs, qid_to_has_ans, na_prob_thresh
  ):
      """Applies no answer threshhold"""
      new_scores = {}
      for qid, s in scores.items():
          pred_na = na_probs[qid] > na_prob_thresh
          if pred_na:
              new_scores[qid] = float(not qid_to_has_ans[qid])
          else:
              new_scores[qid] = s
      return new_scores
  
imports: import collections
  from typing import List
  import ijson
  import numpy
  from transformers.models.bert.tokenization_bert import BasicTokenizer
  from nemo.collections.nlp.data.data_utils import DataProcessor, check_chinese_char, normalize_answer, normalize_chinese_answer
  from nemo.utils import logging
label_desc: Use image node_id 6 for calling a global function with example usage: apply_no_ans_threshold(scores, na_probs, qid_to_has_ans, na_prob_thresh) and returns: new_scores