code: def convert_score(dic, num_spkrs=2) -> List[List[int]]:
      ret = []
      pat = re.compile(r"\d+")
  
      for r_idx in range(num_spkrs):
          ret.append([])
          for h_idx in range(num_spkrs):
              key = f"r{r_idx + 1}h{h_idx + 1}"
  
              score = list(
                  map(int, pat.findall(dic[key]["Scores"]))
              )  # [c,s,d,i]
              assert len(score) == 4  # [c,s,d,i]
              ret[r_idx].append(score)
  
      return ret
  
file_path: espnet/egs2/hui_acg/tts1/pyscripts/utils/eval_perm_free_error.py
imports: import argparse
  import codecs
  import re
  import sys
  from collections import OrderedDict
  from pathlib import Path
  from typing import List
  import numpy
  from scipy.optimize import linear_sum_assignment
label_desc: Use image node_id 2 for calling a global function with example usage: convert_score(dic, num_spkrs) and returns: ret