class_docstr: A Base class that every transform method should derived from.
class_docstr_tok: ["A","Base","class","that","every","transform","method","should","derived","from","."]
docstr: Reload when unpickling from save file.
docstr_tok: ["Reload","when","unpickling","from","save","file","."]
code: def __setstate__(self, state):
      """Reload when unpickling from save file."""
      self.opts = state["opts"]
      self._parse_opts()
      vocabs = state.get("vocabs", None)
      self.warm_up(vocabs=vocabs)
  
imports: import torch
  from onmt.utils.logging import logger
  from onmt.utils.misc import check_path
label_desc: Use image node_id 14 for calling the Transform obj's underlying member method code with example usage: obj.__setstate__(state) without return types