code: def test_order_size(self):
      G = self.G()
      G.add_edges_from(
          [("A", "B"), ("A", "C"), ("B", "D"), ("C", "B"), ("C", "D")]
      )
      assert G.order() == 4
      assert G.size() == 5
      assert G.number_of_edges() == 5
      assert G.number_of_edges("A", "B") == 1
      assert G.number_of_edges("A", "D") == 0
  
imports: import pytest
  import networkx
  from networkx import convert_node_labels_to_integers
  from networkx.utils import edges_equal, nodes_equal
label_desc: Use image node_id 24 for calling the HistoricalTests obj's underlying member method code with example usage: obj.test_order_size() without return types