class_docstr: OpenNMT Tokenizer transform class.
docstr: set seed to ensure reproducibility.
docstr_tok: ["set","seed","to","ensure","reproducibility","."]
code: def _set_seed(self, seed):
      """set seed to ensure reproducibility."""
      import pyonmttok
  
      pyonmttok.set_random_seed(seed)
  
imports: import re
  from onmt.utils.logging import logger
  from onmt.transforms import register_transform
  from .transform import Transform, ObservableStats
  from onmt.constants import DefaultTokens
label_desc: Use image node_id 2 for calling the ONMTTokenizerTransform obj's underlying member method code with example usage: obj._set_seed(seed) without return types