code: def testCreateBipartite(self):
      g = Graph.Bipartite(
          [0, 1] * 5, [(0, 1), (2, 3), (4, 5), (6, 7), (8, 9)]
      )
      self.assertTrue(
          g.vcount() == 10
          and g.ecount() == 5
          and g.is_directed() is False
      )
      self.assertTrue(g.is_bipartite())
      self.assertTrue(g.vs["type"] == [False, True] * 5)
  
file_path: python-igraph/tests/test_bipartite.py
imports: import unittest
  from igraph import Graph
label_desc: Use image node_id 1 for calling the BipartiteTests obj's underlying member method code with example usage: obj.testCreateBipartite() without return types