class_docstr: Abstract Transform class based on HammingDistanceSampling.
docstr: set seed to ensure reproducibility.
docstr_tok: ["set","seed","to","ensure","reproducibility","."]
code: def _set_seed(self, seed):
      """set seed to ensure reproducibility."""
      np.random.seed(seed)
      random.seed(seed)
  
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 for calling the HammingDistanceSamplingTransform obj's underlying member method code with example usage: obj._set_seed(seed) without return types