class_docstr: Tests for SmilesToImage featurizers.
class_docstr_tok: ["Tests","for","SmilesToImage","featurizers","."]
docstr: Test SmilesToImage with max_len
docstr_tok: ["Test","SmilesToImage","with","max_len"]
code: def test_smiles_to_image_with_max_len(self):
      """Test SmilesToImage with max_len"""
      smiles_length = [len(s) for s in self.smiles]
      assert smiles_length == [26, 25]
      featurizer = SmilesToImage(max_len=25)
      features = featurizer.featurize(self.smiles)
      assert features[0].shape == (0,)
      assert features[1].shape == (80, 80, 1)
  
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 5 for calling the TestSmilesToImage obj's underlying member method code with example usage: obj.test_smiles_to_image_with_max_len() without return types