code: def test_rotate(self):
      bart_noise = BARTNoising(
          vocab=[self.FAKE_VOCAB],
          rotate_ratio=1.0,
          replace_length=0,  # not raise Error
      )
      tokens = ["This", "looks", "really", "good", "!"]
      rotated = bart_noise.apply(tokens)
      self.assertNotEqual(tokens, rotated)
      not_rotate = bart_noise.rolling_noise(tokens, p=0.0)
      self.assertEqual(tokens, not_rotate)
  
imports: import unittest
  import copy
  import yaml
  import math
  from argparse import Namespace
  from onmt.transforms import get_transforms_cls, get_specials, make_transforms, TransformPipe
  from onmt.transforms.bart import BARTNoising
label_desc: Use image node_id 3 for calling the TestBARTNoising obj's underlying member method code with example usage: obj.test_rotate() without return types