code: def test_graph_property_general(self):
      (
          G,
          x,
          y,
          edge_x,
          edge_y,
          edge_index,
          graph_x,
          graph_y,
      ) = simple_networkx_graph()
      Graph.add_edge_attr(G, "edge_feature", edge_x)
      Graph.add_edge_attr(G, "edge_label", edge_y)
      Graph.add_node_attr(G, "node_feature", x)
      Graph.add_node_attr(G, "node_label", y)
      Graph.add_graph_attr(G, "graph_feature", graph_x)
      Graph.add_graph_attr(G, "graph_label", graph_y)
  
      dg = Graph(G)
      self.assertEqual(
          dg.keys,
          [
              "G",
              "node_feature",
              "node_label",
              "edge_feature",
              "edge_label",
              "graph_feature",
              "graph_label",
              "edge_index",
              "edge_label_index",
              "node_label_index",
          ],
      )
      self.assertEqual(dg.num_nodes, G.number_of_nodes())
      self.assertEqual(dg.num_edges, G.number_of_edges())
      self.assertEqual(dg.num_node_features, 2)
      self.assertEqual(dg.num_edge_features, 2)
      self.assertEqual(dg.num_graph_features, 2)
      self.assertEqual(dg.num_node_labels, np.max(y.data.numpy()) + 1)
      self.assertEqual(
          dg.num_edge_labels, np.max(edge_y.data.numpy()) + 1
      )
      self.assertEqual(
          dg.num_graph_labels, np.max(graph_y.data.numpy()) + 1
      )
  
file_path: deepsnap/tests/test_graph.py
imports: import torch
  import unittest
  import numpy
  from tests.utils import simple_networkx_graph
  from deepsnap.graph import Graph
  from torch_geometric.datasets import Planetoid
label_desc: Use image node_id 4 for calling the TestGraph obj's underlying member method code with example usage: obj.test_graph_property_general() without return types