docstr: Flask endpoint function to get Model Overview metrics
  for the Question Answering scenario.
  
  :param post_data: List of inputs in the order
  [true_y, predicted_y, aggregate_method, class_name, iou_threshold].
  :type post_data: List
  
  :return: JSON/dict data response
  :rtype: Dict[str, List]
docstr_tok: ["Flask","endpoint","function","to","get","Model","Overview","metrics","for","the","Question","Answering","scenario",".",":","param","post_data",":","List","of","inputs","in","the","order","[","true_y",",","predicted_y",",","aggregate_method",",","class_name",",","iou_threshold","]",".",":","type","post_data",":","List",":","return",":","JSON\/dict","data","response",":","rtype",":","Dict","[","str",",","List","]"]
code: def get_question_answering_metrics(self, post_data):
      """Flask endpoint function to get Model Overview metrics
      for the Question Answering scenario.
  
      :param post_data: List of inputs in the order
      [true_y, predicted_y, aggregate_method, class_name, iou_threshold].
      :type post_data: List
  
      :return: JSON/dict data response
      :rtype: Dict[str, List]
      """
      try:
          selection_indexes = post_data[0]
          question_answering_cache = post_data[1]
          exp = self._analysis.compute_question_answering_metrics(
              selection_indexes, question_answering_cache
          )
          return {WidgetRequestResponseConstants.data: exp}
      except Exception as e:
          print(e)
          traceback.print_exc()
          e_str = _format_exception(e)
          return {
              WidgetRequestResponseConstants.error: "Failed to get Question Answering Model Overview metrics,"
              "inner error: {}".format(e_str),
              WidgetRequestResponseConstants.data: [],
          }
  
imports: import traceback
  from typing import List, Optional
  import numpy
  import pandas
  from erroranalysis._internal.constants import display_name_to_metric
  from raiutils.cohort import Cohort, CohortFilter, CohortFilterMethods
  from raiutils.data_processing import convert_to_list, serialize_json_safe
  from raiutils.exceptions import UserConfigValidationException
  from raiutils.models import ModelTask, is_classifier
  from raiwidgets.constants import ErrorMessages
  from raiwidgets.error_handling import _format_exception
  from raiwidgets.interfaces import WidgetRequestResponseConstants
  from responsibleai import RAIInsights
  from responsibleai._internal.constants import ManagerNames
label_desc: Use image node_id 15 for calling the ResponsibleAIDashboardInput obj's underlying member method code with example usage: obj.get_question_answering_metrics(post_data) and returns: dict, dict