class_docstr: Test DataTransforms for images
class_docstr_tok: ["Test","DataTransforms","for","images"]
code: def test_rotation(self):
      # Check rotation
      dt = DataTransforms(self.d)
      angles = [0, 5, 10, 90]
      for ang in angles:
          rotate = dt.rotate(ang)
          check_rotate = scipy.ndimage.rotate(self.d, ang)
          assert np.allclose(rotate, check_rotate)
  
      # Some more test cases for flip
      rotate = dt.rotate(-90)
      check_rotate = scipy.ndimage.rotate(self.d, 270)
      assert np.allclose(rotate, check_rotate)
  
imports: import os
  import unittest
  import numpy
  import pytest
  import scipy.ndimage
  import deepchem
  from deepchem.trans.transformers import DataTransforms
label_desc: Use image node_id 6 for calling the TestDataTransforms obj's underlying member method code with example usage: obj.test_rotation() without return types