code: def main_lab_lab(
      lab_dir,
      lab_name,
      lab_sets,
      ref_dir,
      ref_name,
      pad_len=0,
      upsample=1,
      verbose=False,
  ):
      uid2refs = {}
      for s in lab_sets:
          uid2refs.update(read_lab(f"{ref_dir}/{s}.{ref_name}"))
  
      uid2hyps = {}
      for s in lab_sets:
          uid2hyps.update(
              read_lab(
                  f"{lab_dir}/{s}.{lab_name}",
                  pad_len,
                  upsample,
              )
          )
      _main(uid2refs, uid2hyps, verbose)
  
file_path: espnet/egs2/covost2/st1/pyscripts/feats/measure_teacher_quality.py
imports: import argparse
  import re
  from collections import Counter
  import numpy
  from tabulate import tabulate
  from espnet2.utils.types import str2bool
label_desc: Use image node_id 10 for calling a global function with example usage: main_lab_lab(lab_dir, lab_name, lab_sets, ref_dir, ref_name, pad_len, upsample, verbose) without return types