code: def test_rouge_cli():
      data_dir = Path("examples/seq2seq/test_data/wmt_en_ro")
      metrics = calculate_rouge_path(
          data_dir.joinpath("test.source"),
          data_dir.joinpath("test.target"),
      )
      assert isinstance(metrics, dict)
      metrics_default_dict = calculate_rouge_path(
          data_dir.joinpath("test.source"),
          data_dir.joinpath("test.target"),
          bootstrap_aggregation=False,
      )
      assert isinstance(metrics_default_dict, defaultdict)
  
file_path: H2O/h2o_flexgen/benchmark/third_party/transformers/examples/legacy/seq2seq/old_test_calculate_rouge.py
imports: from collections import defaultdict
  from pathlib import Path
  import pandas
  from rouge_cli import calculate_rouge_path
  from utils import calculate_rouge
label_desc: Use image node_id 6 for calling a global function with example usage: test_rouge_cli() without return types