class_docstr: Test OneHotFeaturizer.
docstr: Test simple one hot encoding for SMILES strings.
code: def test_onehot_featurizer_SMILES(self):
      """
      Test simple one hot encoding for SMILES strings.
      """
      from rdkit import Chem
  
      length = len(ZINC_CHARSET) + 1
      smiles = "CC(=O)Oc1ccccc1C(=O)O"
      mol = Chem.MolFromSmiles(smiles)
      featurizer = OneHotFeaturizer()
      feature = featurizer([mol])
      defaultMaxLength = 100
      assert feature.shape == (1, defaultMaxLength, length)
      # untranform
      undo_smiles = featurizer.untransform(feature[0])
      assert smiles == undo_smiles
  
file_path: deepchem/deepchem/feat/tests/test_one_hot_featurizer.py
imports: import unittest
  import numpy
  from deepchem.feat import OneHotFeaturizer
  from deepchem.feat.molecule_featurizers.one_hot_featurizer import ZINC_CHARSET
label_desc: Use image node_id 2 for calling the TestOneHotFeaturizer obj's underlying member method code with example usage: obj.test_onehot_featurizer_SMILES() without return types