class_docstr: Noise from BART.
class_docstr_tok: ["Noise","from","BART","."]
docstr: Call this before use to ensure reproducibility.
docstr_tok: ["Call","this","before","use","to","ensure","reproducibility","."]
code: def set_random_seed(seed):
      """Call this before use to ensure reproducibility."""
      np.random.seed(seed)
      torch.manual_seed(seed)
  
imports: import math
  import numpy
  import torch
  from typing import Sequence, Callable
  from onmt.constants import DefaultTokens, SubwordMarker
  from onmt.transforms import register_transform
  from .transform import Transform
label_desc: Use image node_id 2 for calling the BARTNoising obj's underlying member method code with example usage: obj.set_random_seed(seed) without return types