class_docstr: SwitchOut.
  :cite:`DBLP:journals/corr/abs-1808-07512`
code: def __init__(self, opts):
      super().__init__(opts)
  
imports: import random
  import numpy
  from onmt.constants import DefaultTokens
  from onmt.transforms import register_transform
  from .transform import Transform, ObservableStats
label_desc: Use image node_id 1 to create a new SwitchOutTransform object from inherited base classes: HammingDistanceSamplingTransform with example: obj = SwitchOutTransform(opts)