class_docstr: Allow the calculation of metrics via the Trainer's
  training_eval_handler method.
code: def warm_up(self, transforms):
      self.transforms = transforms
      transforms_cls = get_transforms_cls(self.transforms)
      transforms = make_transforms(
          self.opt, transforms_cls, self.vocabs
      )
      self.transform = TransformPipe.build_from(transforms.values())
  
file_path: OpenNMT-py/onmt/utils/scoring_utils.py
imports: import codecs
  import os
  from onmt.utils.parse import ArgumentParser
  from onmt.translate import GNMTGlobalScorer, Translator
  from onmt.opts import translate_opts
  from onmt.constants import CorpusTask
  from onmt.inputters.dynamic_iterator import build_dynamic_dataset_iter
  from onmt.transforms import get_transforms_cls, make_transforms, TransformPipe
label_desc: Use image node_id 2 for calling the ScoringPreparator obj's underlying member method code with example usage: obj.warm_up(transforms) without return types