class_docstr: Test MXMNetFeaturizer.
class_docstr_tok: ["Test","MXMNetFeaturizer","."]
docstr: Test for featurization of "C" using `MXMNetFeaturizer` class.
docstr_tok: ["Test","for","featurization","of","``","C","''","using","`","MXMNetFeaturizer","`","class","."]
code: def test_featurizer_single_atom(self):
      """
      Test for featurization of "C" 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[2].num_nodes == 1
      assert graph_feat[2].num_node_features == 1
      assert graph_feat[2].node_features.shape == (1, 1)
      assert graph_feat[2].num_edges == 0
      assert (
          graph_feat[2].node_features == self.node_features[2]
      ).all()
  
      assert (graph_feat[2].edge_index == self.edge_index[2]).all()
  
file_path: deepchem/deepchem/feat/tests/test_mxmnet_featurizer.py
imports: import deepchem
  import numpy
  import unittest
label_desc: Use image node_id 4 for calling the TestMXMNetFeaturizer obj's underlying member method code with example usage: obj.test_featurizer_single_atom() without return types