class_docstr: Test DataTransforms for images
class_docstr_tok: ["Test","DataTransforms","for","images"]
code: def test_crop(self):
      # Check crop
      dt = DataTransforms(self.d)
      crop = dt.crop(0, 10, 0, 10)
      y = self.d.shape[0]
      x = self.d.shape[1]
      check_crop = self.d[10 : y - 10, 0 : x - 0]
      assert np.allclose(crop, check_crop)
  
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 4 for calling the TestDataTransforms obj's underlying member method code with example usage: obj.test_crop() without return types