code: def test_graph_property_edge_case(self):
      (
          G_1,
          x,
          y,
          edge_x,
          edge_y,
          edge_index,
          graph_x,
          graph_y,
      ) = simple_networkx_graph()
      Graph.add_node_attr(G_1, "node_feature", x)
      dg_1 = Graph(G_1)
      self.assertEqual(dg_1.num_nodes, G_1.number_of_nodes())
      self.assertEqual(dg_1.num_edges, G_1.number_of_edges())
      self.assertEqual(dg_1.num_node_features, 2)
      self.assertEqual(dg_1.num_edge_features, 0)
      self.assertEqual(dg_1.num_graph_features, 0)
      self.assertEqual(dg_1.num_node_labels, 0)
      self.assertEqual(dg_1.num_edge_labels, 0)
      self.assertEqual(dg_1.num_graph_labels, 0)
  
      (
          G_2,
          x,
          y,
          edge_x,
          edge_y,
          edge_index,
          graph_x,
          graph_y,
      ) = simple_networkx_graph()
      Graph.add_edge_attr(
          G_2, "edge_label", edge_y.type(torch.FloatTensor)
      )
      Graph.add_node_attr(G_2, "node_label", y.type(torch.FloatTensor))
      Graph.add_graph_attr(
          G_2, "graph_label", graph_y.type(torch.FloatTensor)
      )
  
      dg_2 = Graph(G_2)
      self.assertEqual(dg_2.num_node_labels, 1)
      self.assertEqual(dg_2.num_edge_labels, 1)
      self.assertEqual(dg_2.num_graph_labels, 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 3 for calling the TestGraph obj's underlying member method code with example usage: obj.test_graph_property_edge_case() without return types