class_docstr: Test MATFeaturizer.
docstr: Test featurizer.py
docstr_tok: ["Test","featurizer.py"]
code: def test_mat_featurizer(self):
      """
      Test featurizer.py
      """
      featurizer = MATFeaturizer()
      out = featurizer.featurize(self.mol)
      assert isinstance(out, np.ndarray)
      assert out[0].node_features.shape == (3, 36)
      assert out[0].adjacency_matrix.shape == (3, 3)
      assert out[0].distance_matrix.shape == (3, 3)
      expected_node_features = np.array(
          [
              [
                  1.0,
                  0.0,
                  0.0,
                  0.0,
                  0.0,
                  0.0,
                  0.0,
                  0.0,
                  0.0,
                  0.0,
                  0.0,
                  0.0,
                  0.0,
                  0.0,
                  0.0,
                  0.0,
                  0.0,
                  0.0,
                  0.0,
                  0.0,
                  0.0,
                  0.0,
                  0.0,
                  0.0,
                  0.0,
                  0.0,
                  0.0,
                  0.0,
                  0.0,
                  0.0,
                  0.0,
                  0.0,
                  0.0,
                  0.0,
                  0.0,
                  0.0,
              ],
              [
                  0.0,
                  0.0,
                  1.0,
                  0.0,
                  0.0,
                  0.0,
                  0.0,
                  0.0,
                  0.0,
                  0.0,
                  0.0,
                  0.0,
                  0.0,
                  1.0,
                  0.0,
                  0.0,
                  0.0,
                  0.0,
                  0.0,
                  0.0,
                  0.0,
                  1.0,
                  0.0,
                  0.0,
                  0.0,
                  0.0,
                  0.0,
                  0.0,
                  1.0,
                  0.0,
                  0.0,
                  0.0,
                  0.0,
                  0.0,
                  0.0,
                  0.0,
              ],
              [
                  0.0,
                  0.0,
                  1.0,
                  0.0,
                  0.0,
                  0.0,
                  0.0,
                  0.0,
                  0.0,
                  0.0,
                  0.0,
                  0.0,
                  0.0,
                  1.0,
                  0.0,
                  0.0,
                  0.0,
                  0.0,
                  0.0,
                  0.0,
                  0.0,
                  1.0,
                  0.0,
                  0.0,
                  0.0,
                  0.0,
                  0.0,
                  0.0,
                  1.0,
                  0.0,
                  0.0,
                  0.0,
                  0.0,
                  0.0,
                  0.0,
                  0.0,
              ],
          ]
      )
      expected_adj_matrix = np.array(
          [[0.0, 0.0, 0.0], [0.0, 0.0, 1.0], [0.0, 1.0, 0.0]]
      )
      expected_dist_matrix = np.array(
          [
              [1.0e06, 1.0e06, 1.0e06],
              [1.0e06, 0.0e00, 1.0e00],
              [1.0e06, 1.0e00, 0.0e00],
          ]
      )
      assert np.array_equal(
          out[0].node_features, expected_node_features
      )
      assert np.array_equal(
          out[0].adjacency_matrix, expected_adj_matrix
      )
      assert np.array_equal(
          out[0].distance_matrix, expected_dist_matrix
      )
  
imports: import unittest
  from deepchem.feat import MATFeaturizer
  import numpy
label_desc: Use image node_id 2 for calling the TestMATFeaturizer obj's underlying member method code with example usage: obj.test_mat_featurizer() without return types