code: def parse_battle_score(evaluation: str) -> List[float]:
      """
      Parse evaluation from GPT-4 and get the scores of model 1 and 2.
  
      Args:
          evaluation: evaluation from GPT-4.
  
      Returns:
          A score pair of two different model answers.
      """
  
      try:
          pattern = re.compile("([0-9]|10) out of 10")
          sp = re.findall(pattern, evaluation)
          if len(re.findall(pattern, evaluation)) == 2:
              return [float(sp[0]), float(sp[1])]
  
          pattern = re.compile("a score of ([0-9]|10)")
          sp = re.findall(pattern, evaluation)
          if len(re.findall(pattern, evaluation)) == 2:
              return [float(sp[0]), float(sp[1])]
  
          pattern = re.compile("([0-9]|10)/10")
          sp = re.findall(pattern, evaluation)
          if len(re.findall(pattern, evaluation)) == 2:
              return [float(sp[0]), float(sp[1])]
  
          score_pair = evaluation.split("\n")[0]
          score_pair = score_pair.replace(",", " ")
          sp = score_pair.split(" ")
          if len(sp) == 2:
              return [float(sp[0]), float(sp[1])]
          else:
              raise Exception(f"Invalid score pair. Got {evaluation}.")
      except Exception:
          return [-1, -1]
  
imports: import concurrent.futures
  import os
  import re
  import time
  from copy import deepcopy
  from typing import Any, Dict, List
  import matplotlib.pyplot
  import numpy
  import openai
  import pandas
  import seaborn
  import tqdm
  from colossal_eval.utils import jdump, jload
label_desc: Use image node_id 2 for calling a global function with example usage: parse_battle_score(evaluation) and returns: list, list, list, list, list