code: def _get_scores(dir_path: str, metric: str, model: str):
      hypo = _get_hypo(dir_path, [model])
      ref = _get_ref(dir_path)
      tag = _get_tag(dir_path)
      return get_scorer(metric)(
          corpus_level=True, sent_level=True
      ).score(hypo.data[0].text, ref.text, tags=tag.text)
  
file_path: vizseq/vizseq/_view/mem_cached_data_getters.py
imports: from typing import List
  from functools import lru_cache
  import os.path
  from glob import glob
  from vizseq._data import VizSeqDataSources
  from vizseq.scorers import get_scorer
label_desc: Use image node_id 6 for calling a global function with example usage: _get_scores(dir_path, metric, model) and returns: get_scorer