code: def raw_corpus_length_ratio(
      hypotheses: Iterable[str], references: Iterable[str]
  ) -> float:
      """
      Simple wrapper around length ratio implementation.
  
      :param hypotheses: Hypotheses stream.
      :param references: Reference stream.
      :return: Length ratio score as float.
      """
      ratios = [
          len(h.split()) / len(r.split())
          for h, r in zip(hypotheses, references)
      ]
      return sum(ratios) / len(ratios) if len(ratios) else 0.0
  
imports: import argparse
  import logging
  import sys
  from collections import defaultdict
  from functools import partial
  from typing import Callable, Iterable, Dict, List, Tuple, Optional
  import numpy
  import sacrebleu
  from sockeye_contrib import rouge
  from .None import arguments
  from .None import constants
  from .None import data_io
  from .None import utils
  from .log import setup_main_logger, log_sockeye_version
label_desc: Use image node_id 7 for calling a global function with example usage: raw_corpus_length_ratio(hypotheses, references) and returns: unknown