class_docstr: Test mol graphs.
class_docstr_tok: ["Test","mol","graphs","."]
docstr: Tests that deg_slice works properly.
docstr_tok: ["Tests","that","deg_slice","works","properly","."]
code: def test_conv_mol_deg_slice(self):
      """Tests that deg_slice works properly."""
      atom_features = np.array(
          [
              [20, 21, 22, 23],
              [24, 25, 26, 27],
              [28, 29, 30, 31],
              [32, 33, 34, 35],
          ]
      )
      adj_list = [[1, 2], [0, 3], [0, 3], [1, 2]]
      mol = ConvMol(atom_features, adj_list)
  
      assert np.array_equal(
          mol.get_deg_slice(),
          # 0 atoms of degree 0
          # 0 atoms of degree 1
          # 4 atoms of degree 2
          # 0 atoms of degree 3
          # 0 atoms of degree 4
          # 0 atoms of degree 5
          # 0 atoms of degree 6
          # 0 atoms of degree 7
          # 0 atoms of degree 8
          # 0 atoms of degree 9
          # 0 atoms of degree 10
          np.array(
              [
                  [0, 0],
                  [0, 0],
                  [0, 4],
                  [0, 0],
                  [0, 0],
                  [0, 0],
                  [0, 0],
                  [0, 0],
                  [0, 0],
                  [0, 0],
                  [0, 0],
              ]
          ),
      )
  
file_path: deepchem/deepchem/feat/tests/test_mol_graphs.py
imports: import unittest
  import numpy
  from deepchem.feat.mol_graphs import ConvMol
label_desc: Use image node_id 2 for calling the TestMolGraphs obj's underlying member method code with example usage: obj.test_conv_mol_deg_slice() without return types