class_docstr: Tests for SmilesToImage featurizers.
class_docstr_tok: ["Tests","for","SmilesToImage","featurizers","."]
docstr: Test SmilesToImage with img_spec
docstr_tok: ["Test","SmilesToImage","with","img_spec"]
code: def test_smiles_to_image_with_img_spec(self):
      """Test SmilesToImage with img_spec"""
      featurizer = SmilesToImage()
      base_features = featurizer.featurize(self.smiles)
      featurizer = SmilesToImage(img_spec="engd")
      features = featurizer.featurize(self.smiles)
      assert features.shape == (2, 80, 80, 4)
      assert not np.allclose(base_features, features)
  
file_path: deepchem/deepchem/feat/tests/test_smiles_featurizers.py
imports: import os
  import unittest
  import numpy
  from deepchem.feat import create_char_to_idx, SmilesToSeq, SmilesToImage
label_desc: Use image node_id 6 for calling the TestSmilesToImage obj's underlying member method code with example usage: obj.test_smiles_to_image_with_img_spec() without return types