class_docstr: Test DataTransforms for images
class_docstr_tok: ["Test","DataTransforms","for","images"]
docstr: init to load the MNIST data for DataTransforms Tests
docstr_tok: ["init","to","load","the","MNIST","data","for","DataTransforms","Tests"]
code: def setUp(self):
      """
      init to load the MNIST data for DataTransforms Tests
      """
      super(TestDataTransforms, self).setUp()
      self.current_dir = os.path.dirname(os.path.abspath(__file__))
      (x_train, y_train), (
          x_test,
          y_test,
      ) = tf.keras.datasets.mnist.load_data()
      train = dc.data.NumpyDataset(x_train, y_train)
      # extract only the images (no need of the labels)
      data = (train.X)[0]
      # reshaping the vector to image
      data = np.reshape(data, (28, 28))
      self.d = data
  
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 1 for calling the TestDataTransforms obj's underlying member method code with example usage: obj.setUp() without return types