code: def make_transforms(opts, transforms_cls, vocabs):
      """Build transforms in `transforms_cls` with vocab of `fields`."""
      transforms = {}
      for name, transform_cls in transforms_cls.items():
          if transform_cls.require_vocab() and vocabs is None:
              logger.warning(
                  f"{transform_cls.__name__} require vocab to apply, skip it."
              )
              continue
          transform_obj = transform_cls(opts)
          transform_obj.warm_up(vocabs)
          transforms[name] = transform_obj
      return transforms
  
imports: import torch
  from onmt.utils.logging import logger
  from onmt.utils.misc import check_path
label_desc: Use image node_id 1 for calling a global function with example usage: make_transforms(opts, transforms_cls, vocabs) and returns: transforms