code: def testMinCut(self):
      g = self.constructSimpleGraph()
      mc = g.mincut()
      self.assertTrue(isinstance(mc, Cut))
      self.assertTrue(mc.value == 2)
      self.assertTrue(
          set(mc.partition[0]).union(mc.partition[1])
          == set(range(g.vcount()))
      )
      self.assertTrue(isinstance(str(mc), str))
      self.assertTrue(isinstance(repr(mc), str))
      self.assertTrue(isinstance(mc.es, EdgeSeq))
      self.assertTrue(len(mc.es) == 2)
      mc = g.mincut(capacity="capacity")
      self.assertTrue(mc.value == 4)
      self.assertRaises(KeyError, g.mincut, capacity="unknown")
  
imports: import unittest
  from igraph import Cut, Graph, EdgeSeq, InternalError
  from itertools import combinations
  from random import randint
label_desc: Use image node_id 4 for calling the CutTests obj's underlying member method code with example usage: obj.testMinCut() without return types