class_docstr: Add Suffix to src (& tgt) sentence.
docstr: Get all needed suffix correspond to corpus in `opts`.
docstr_tok: ["Get","all","needed","suffix","correspond","to","corpus","in","`","opts","`","."]
code: def get_suffix_dict(cls, opts):
      """Get all needed suffix correspond to corpus in `opts`."""
      suffix_dict = {}
      # suffix src/tgt for each dataset
      if hasattr(opts, "data"):
          for c_name, corpus in opts.data.items():
              suffix = cls._get_suffix(corpus)
              if suffix is not None:
                  logger.debug(f"Get suffix for {c_name}: {suffix}")
                  suffix_dict[c_name] = suffix
      # suffix as general option for inference
      if hasattr(opts, "src_suffix"):
          if "infer" not in suffix_dict.keys():
              suffix_dict["infer"] = {}
          suffix_dict["infer"]["src"] = opts.src_suffix
          logger.debug(f"Get suffix for src infer: {opts.src_suffix}")
      if hasattr(opts, "tgt_suffix"):
          if "infer" not in suffix_dict.keys():
              suffix_dict["infer"] = {}
          suffix_dict["infer"]["tgt"] = opts.tgt_suffix
          logger.debug(f"Get suffix for tgt infer: {opts.tgt_suffix}")
  
      return suffix_dict
  
imports: from onmt.utils.logging import logger
  from onmt.transforms import register_transform
  from .transform import Transform, ObservableStats
label_desc: Use image node_id 4 for calling the SuffixTransform obj's underlying member method code with example usage: obj.get_suffix_dict(cls, opts) and returns: suffix_dict