code: def test_overflow(graphtype):
      g = graphtype(2, 1)
      g.add_node(2)
  
      print("Memory expected to double after 15...")
      for i in range(20):
          g.add_edge(0, 1, 1, 2)
          print(i, end=" ")
  
      v1 = g.get_edge(0, 1)
      v2 = g.get_edge(1, 0)
      print(
          "\nFinal edge weight should be 1 resp. 2. Found {} resp. {}".format(
              v1, v2
          )
      )
  
file_path: medpy/lib/maxflow/src/sum_edge_test.py
imports: from maxflow import GraphDouble, GraphFloat, GraphInt
  import random
label_desc: Use image node_id 5 for calling a global function with example usage: test_overflow(graphtype) without return types