code: def test_one_hot_encode(self):
      # string set
      assert one_hot_encode("a", ["a", "b", "c"]) == [1.0, 0.0, 0.0]
      # integer set
      assert one_hot_encode(2, [0.0, 1, 2]) == [0.0, 0.0, 1.0]
      # include_unknown_set is False
      assert one_hot_encode(3, [0.0, 1, 2]) == [0.0, 0.0, 0.0]
      # include_unknown_set is True
      assert one_hot_encode(3, [0.0, 1, 2], True) == [
          0.0,
          0.0,
          0.0,
          1.0,
      ]
  
imports: import unittest
  from deepchem.utils.molecule_feature_utils import one_hot_encode
  from deepchem.utils.molecule_feature_utils import get_atom_type_one_hot
  from deepchem.utils.molecule_feature_utils import construct_hydrogen_bonding_info
  from deepchem.utils.molecule_feature_utils import get_atom_hydrogen_bonding_one_hot
  from deepchem.utils.molecule_feature_utils import get_atom_hybridization_one_hot
  from deepchem.utils.molecule_feature_utils import get_atom_total_num_Hs_one_hot
  from deepchem.utils.molecule_feature_utils import get_atom_is_in_aromatic_one_hot
  from deepchem.utils.molecule_feature_utils import get_atom_chirality_one_hot
  from deepchem.utils.molecule_feature_utils import get_atom_formal_charge
  from deepchem.utils.molecule_feature_utils import get_atom_formal_charge_one_hot
  from deepchem.utils.molecule_feature_utils import get_atom_partial_charge
  from deepchem.utils.molecule_feature_utils import get_atom_total_degree_one_hot
  from deepchem.utils.molecule_feature_utils import get_atom_implicit_valence_one_hot
  from deepchem.utils.molecule_feature_utils import get_atom_explicit_valence_one_hot
  from deepchem.utils.molecule_feature_utils import get_bond_type_one_hot
  from deepchem.utils.molecule_feature_utils import get_bond_is_in_same_ring_one_hot
  from deepchem.utils.molecule_feature_utils import get_bond_is_conjugated_one_hot
  from deepchem.utils.molecule_feature_utils import get_bond_stereo_one_hot
  from deepchem.utils.molecule_feature_utils import get_bond_graph_distance_one_hot
label_desc: Use image node_id 2 for calling the TestGraphConvUtils obj's underlying member method code with example usage: obj.test_one_hot_encode() without return types