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: Pickling following for rebuild.
docstr_tok: ["Pickling","following","for","rebuild","."]
code: def __getstate__(self):
      """Pickling following for rebuild."""
      state = {"opts": self.opts}
      if hasattr(self, "vocabs"):
          state["vocabs"] = self.vocabs
      return state
  
imports: import torch
  from onmt.utils.logging import logger
  from onmt.utils.misc import check_path
label_desc: Use image node_id 12 for calling the Transform obj's underlying member method code with example usage: obj.__getstate__() and returns: state