class_docstr: Test OneHotFeaturizer.
docstr: Test simple one hot encoding for arbitrary string.
code: def test_onehot_featurizer_arbitrary(self):
      """
      Test simple one hot encoding for arbitrary string.
      """
      string = "abcdefghijklmnopqrstuvwxyzwebhasw"
      charset = "abcdefghijklmnopqrstuvwxyz"
      length = len(charset) + 1
      defaultMaxLength = 100
      featurizer = OneHotFeaturizer(charset)
      feature = featurizer([string])  # Implicit call to featurize()
      assert feature.shape == (1, defaultMaxLength, length)
      # untransform
      undo_string = featurizer.untransform(feature[0])
      assert string == undo_string
  
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 1 for calling the TestOneHotFeaturizer obj's underlying member method code with example usage: obj.test_onehot_featurizer_arbitrary() without return types