code: def test_newline_irrelevant_for_other_metrics():
      k = ["rouge1", "rouge2", "rougeL"]
      score_sep = calculate_rouge(
          PRED, TGT, newline_sep=True, rouge_keys=k
      )
      score_no_sep = calculate_rouge(
          PRED, TGT, newline_sep=False, rouge_keys=k
      )
      assert score_sep == score_no_sep
  
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 3 for calling a global function with example usage: test_newline_irrelevant_for_other_metrics() without return types