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: Initialize Transform by parsing `opts` and add them as attribute.
docstr_tok: ["Initialize","Transform","by","parsing","`","opts","`","and","add","them","as","attribute","."]
code: def __init__(self, opts):
      """Initialize Transform by parsing `opts` and add them as attribute."""
      self.opts = opts
      self._parse_opts()
  
imports: import torch
  from onmt.utils.logging import logger
  from onmt.utils.misc import check_path
label_desc: Use image node_id 1 to create a new Transform object from inherited base classes: object with example: obj = Transform(opts)