class_docstr: Test DataTransforms for images
class_docstr_tok: ["Test","DataTransforms","for","images"]
code: def test_scaling(self):
      from PIL import Image
  
      # Check Scales
      dt = DataTransforms(self.d)
      h = 150
      w = 150
      scale = Image.fromarray(self.d).resize((h, w))
      check_scale = dt.scale(h, w)
      np.allclose(scale, check_scale)
  
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 8 for calling the TestDataTransforms obj's underlying member method code with example usage: obj.test_scaling() without return types