code: def categorise_answer(answer_blob):
      if answer_blob["unanswerable"]:
          answer = "unanswerable"
          answer_type = "unanswerable"
          return answer, answer_type
      elif answer_blob["yes_no"]:
          answer = "yes"
          answer_type = "bool"
          return answer, answer_type
      elif answer_blob["free_form_answer"]:
          answer = answer_blob["free_form_answer"]
          answer_type = "free form answer"
          return answer, answer_type
      elif answer_blob["extractive_spans"]:
          answer = answer_blob["extractive_spans"]
          answer_type = "extractive_spans"
          return answer, answer_type
      elif answer_blob["yes_no"] is False:
          answer = "no"
          answer_type = "bool"
          return answer, answer_type
  
imports: from collections import Counter
  import re
  import string
  from lm_eval.base import rf, Task
  from lm_eval.metrics import f1_score, mean
label_desc: Use image node_id 2 for calling a global function with example usage: categorise_answer(answer_blob) and returns: answer,  answer_type, answer,  answer_type, answer,  answer_type, answer,  answer_type, answer,  answer_type