code: def testBipartite(self):
      g = Graph.Full_Bipartite(3, 2)
  
      lo = g.layout("bipartite")
      ys = [coord[1] for coord in lo]
      self.assertEqual([1, 1, 1, 0, 0], ys)
  
      lo = g.layout("bipartite", vgap=3)
      ys = [coord[1] for coord in lo]
      self.assertEqual([3, 3, 3, 0, 0], ys)
  
      lo = g.layout("bipartite", hgap=5)
      self.assertEqual(
          {0, 5, 10}, {coord[0] for coord in lo if coord[1] == 1}
      )
      self.assertEqual(
          {2.5, 7.5}, {coord[0] for coord in lo if coord[1] == 0}
      )
  
imports: import unittest
  from math import hypot
  from igraph import Graph, Layout, BoundingBox, InternalError
  from igraph import umap_compute_weights
label_desc: Use image node_id 12 for calling the LayoutAlgorithmTests obj's underlying member method code with example usage: obj.testBipartite() without return types