code: def testCombinationMedian(self):
      g = self.g
      g.es["weight2"] = [1, 0, 2, 4, 8, 6, 7]
      g.simplify(combine_edges="median")
      self.assertTrue(g.es["weight"] == [1.5, 3, 5])
      self.assertTrue(g.es["weight2"] == [0.5, 2, 6])
  
imports: import unittest
  from igraph import Graph
label_desc: Use image node_id 6 for calling the AttributeCombinationTests obj's underlying member method code with example usage: obj.testCombinationMedian() without return types