code: def rouge(
      targets,
      predictions,
      score_keys=("rouge1", "rouge2", "rougeLsum"),
      verbose=True,
      **kwargs,
  ):
      """Computes rouge score nondeterministically using the bootstrap.
  
      Args:
        targets: list of strings.
        predictions: list of strings.
        score_keys: list of strings with the keys to compute.
        verbose: whether to enable additional logging.
        **kwargs: additional keyword arguments for RougeScorer.
  
      Returns:
        dict with score_key: rouge score across all targets and predictions
      """
  
      scorer = rouge_scorer.RougeScorer(
          rouge_types=score_keys, **kwargs
      )
      aggregator = scoring.BootstrapAggregator()
  
      for prediction, target in zip(predictions, targets):
          target = _prepare_summary_rouge(target)
          prediction = _prepare_summary_rouge(prediction)
          aggregator.add_scores(
              scorer.score(target=target, prediction=prediction)
          )
      result = aggregator.aggregate()
      if verbose:
          for key in score_keys:
              logging.info(
                  "%s = %.2f, 95%% confidence [%.2f, %.2f]",
                  key,
                  result[key].mid.fmeasure * 100,
                  result[key].low.fmeasure * 100,
                  result[key].high.fmeasure * 100,
              )
      return {key: result[key].mid.fmeasure * 100 for key in score_keys}
  
imports: import collections
  import itertools
  import re
  import string
  from typing import Any, Dict, Mapping, Optional, Sequence, Tuple, Union
  from absl import logging
  import editdistance
  import flax
  import jax.numpy
  import numpy
  import sacrebleu
  import scipy.stats
  import seqio
  import sklearn.metrics
  from t5.evaluation import qa_utils
  import tensorflow.compat.v2
  from rouge_score import rouge_scorer
  from rouge_score import scoring
label_desc: Use image node_id 3 for calling a global function with example usage: rouge(targets, predictions, score_keys, verbose) and returns: unknown