code: def _get_sent_ribes(
      hypothesis: List[str],
      references: List[List[str]],
      extra_args: Optional[Dict[str, str]] = None,
  ) -> List[float]:
      joined_ref = list(zip(*references))
      scores = []
      for r, h in zip(joined_ref, hypothesis):
          try:
              cur = sent_ribes([rr.split() for rr in r], h.split())
              scores.append(cur)
          except ZeroDivisionError:
              scores.append(0.0)
      return scores
  
imports: from typing import List, Optional, Dict
  from nltk.translate.ribes_score import sentence_ribes
  from vizseq.scorers import register_scorer, VizSeqScorer, VizSeqScore
label_desc: Use image node_id 1 for calling a global function with example usage: _get_sent_ribes(hypothesis, references, extra_args) and returns: scores