class_docstr: Test OneHotFeaturizer.
docstr: Test correct one hot encoding.
code: def test_correct_transformation_arbitrary(self):
      """
      Test correct one hot encoding.
      """
      charset = "1234567890"
      string = "12345"
      featurizer = OneHotFeaturizer(charset=charset, max_length=100)
      feature = featurizer([string])
      assert np.allclose(
          feature[0][0], np.array([1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0])
      )
      assert np.allclose(
          feature[0][1], np.array([0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0])
      )
      assert np.allclose(
          feature[0][2], np.array([0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0])
      )
      assert np.allclose(
          feature[0][3], np.array([0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0])
      )
      assert np.allclose(
          feature[0][4], np.array([0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0])
      )
      assert "This test case has not yet been written."
  
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 6 for calling the TestOneHotFeaturizer obj's underlying member method code with example usage: obj.test_correct_transformation_arbitrary() without return types