class_docstr: Test MXMNetFeaturizer.
class_docstr_tok: ["Test","MXMNetFeaturizer","."]
docstr: Test for featurization of "C1=CC=NC=C1" using `MXMNetFeaturizer` class.
docstr_tok: ["Test","for","featurization","of","``","C1=CC=NC=C1","''","using","`","MXMNetFeaturizer","`","class","."]
code: def test_featurizer_ring(self):
      """
      Test for featurization of "C1=CC=NC=C1" using `MXMNetFeaturizer` class.
      """
  
      featurizer = (
          dc.feat.molecule_featurizers.mxmnet_featurizer.MXMNetFeaturizer()
      )
      graph_feat = featurizer.featurize(self.smiles)
      assert len(graph_feat) == 4
  
      assert graph_feat[0].num_nodes == 6
      assert graph_feat[0].num_node_features == 1
      assert graph_feat[0].node_features.shape == (6, 1)
      assert graph_feat[0].num_edges == 12
      assert (
          graph_feat[0].node_features == self.node_features[0]
      ).all()
  
      assert (graph_feat[0].edge_index == self.edge_index[0]).all()
  
file_path: deepchem/deepchem/feat/tests/test_mxmnet_featurizer.py
imports: import deepchem
  import numpy
  import unittest
label_desc: Use image node_id 2 for calling the TestMXMNetFeaturizer obj's underlying member method code with example usage: obj.test_featurizer_ring() without return types