class_docstr: Test ConvMolFeaturizer featurizes properly.
docstr: Test that single carbon atom is featurized properly.
docstr_tok: ["Test","that","single","carbon","atom","is","featurized","properly","."]
code: def test_single_carbon(self):
      """Test that single carbon atom is featurized properly."""
      raw_smiles = ["C"]
      import rdkit
  
      mols = [rdkit.Chem.MolFromSmiles(s) for s in raw_smiles]
      featurizer = ConvMolFeaturizer()
      mol_list = featurizer.featurize(mols)
      mol = mol_list[0]
  
      # Only one carbon
      assert mol.get_num_atoms() == 1
  
      # No bonds, so degree adjacency lists are empty
      deg_adj_lists = mol.get_deg_adjacency_lists()
      assert np.array_equal(
          deg_adj_lists[0], np.zeros([1, 0], dtype=np.int32)
      )
      assert np.array_equal(
          deg_adj_lists[1], np.zeros([0, 1], dtype=np.int32)
      )
      assert np.array_equal(
          deg_adj_lists[2], np.zeros([0, 2], dtype=np.int32)
      )
      assert np.array_equal(
          deg_adj_lists[3], np.zeros([0, 3], dtype=np.int32)
      )
      assert np.array_equal(
          deg_adj_lists[4], np.zeros([0, 4], dtype=np.int32)
      )
      assert np.array_equal(
          deg_adj_lists[5], np.zeros([0, 5], dtype=np.int32)
      )
      assert np.array_equal(
          deg_adj_lists[6], np.zeros([0, 6], dtype=np.int32)
      )
  
file_path: deepchem/deepchem/feat/tests/test_graph_features.py
imports: import unittest
  import numpy
  from deepchem.feat.graph_features import ConvMolFeaturizer
label_desc: Use image node_id 2 for calling the TestConvMolFeaturizer obj's underlying member method code with example usage: obj.test_single_carbon() without return types