code: def test_subgraph_consistency(self):
      node_index = [0, 2, 3, 4]
      eid = [2]
      subgraph = self.graph.subgraph(node_index, eid)
      for key, value in subgraph.node_feat.items():
          diff = value - self.graph.node_feat[key][node_index]
          diff = np.sqrt(np.sum(diff * diff))
          self.assertLessEqual(diff, 1e-6)
  
      for key, value in subgraph.edge_feat.items():
          diff = value - self.graph.edge_feat[key][eid]
          diff = np.sqrt(np.sum(diff * diff))
          self.assertLessEqual(diff, 1e-6)
  
imports: import unittest
  import numpy
  from pgl.graph import Graph
label_desc: Use image node_id 2 for calling the GraphTest obj's underlying member method code with example usage: obj.test_subgraph_consistency() without return types