class_docstr: Tests for SmilesToImage featurizers.
class_docstr_tok: ["Tests","for","SmilesToImage","featurizers","."]
docstr: Test SmilesToImage with res
docstr_tok: ["Test","SmilesToImage","with","res"]
code: def test_smiles_to_image_with_res(self):
      """Test SmilesToImage with res"""
      featurizer = SmilesToImage()
      base_features = featurizer.featurize(self.smiles)
      featurizer = SmilesToImage(res=0.6)
      features = featurizer.featurize(self.smiles)
      assert features.shape == (2, 80, 80, 1)
      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 3 for calling the TestSmilesToImage obj's underlying member method code with example usage: obj.test_smiles_to_image_with_res() without return types