code: def get_specials(opts, transforms_cls_dict):
      """Get specials of transforms that should be registed in Vocab."""
      all_specials = {"src": [], "tgt": []}
      for name, transform_cls in transforms_cls_dict.items():
          src_specials, tgt_specials = transform_cls.get_specials(opts)
          for src_spec in src_specials:
              all_specials["src"].append(src_spec)
          for tgt_spec in tgt_specials:
              all_specials["tgt"].append(tgt_spec)
      logger.info(
          f"Get special vocabs from Transforms: {all_specials}."
      )
      return all_specials
  
imports: import torch
  from onmt.utils.logging import logger
  from onmt.utils.misc import check_path
label_desc: Use image node_id 2 for calling a global function with example usage: get_specials(opts, transforms_cls_dict) and returns: all_specials