code: def paired_bootstrap_resample_from_files(
      reference_file: str,
      baseline_file: str,
      new_file: str,
      num_samples: int = 1000,
      sample_size: Optional[int] = None,
  ) -> PairedBootstrapOutput:
      with open(reference_file, "r") as f:
          references: List[str] = [line for line in f]
  
      with open(baseline_file, "r") as f:
          baseline_translations: List[str] = [line for line in f]
      baseline_stats: pd.DataFrame = get_sufficient_stats(
          translations=baseline_translations, references=references
      )
  
      with open(new_file, "r") as f:
          new_translations: List[str] = [line for line in f]
      new_stats: pd.DataFrame = get_sufficient_stats(
          translations=new_translations, references=references
      )
  
      return paired_bootstrap_resample(
          baseline_stats=baseline_stats,
          new_stats=new_stats,
          num_samples=num_samples,
          sample_size=sample_size,
      )
  
file_path: translate/pytorch_translate/bleu_significance.py
imports: import argparse
  from typing import List, NamedTuple, Optional
  import numpy
  import pandas
  import sacrebleu
label_desc: Use image node_id 4 for calling a global function with example usage: paired_bootstrap_resample_from_files(reference_file, baseline_file, new_file, num_samples, sample_size) and returns: paired_bootstrap_resample