code: def testBipartiteMatchingErrors(self):
      # Type vector too short
      g = Graph([(0, 1), (1, 2), (2, 3)])
      self.assertRaises(
          InternalError, g.maximum_bipartite_matching, types=[0, 1, 0]
      )
  
      # Graph not bipartite
      self.assertRaises(
          InternalError,
          g.maximum_bipartite_matching,
          types=[0, 1, 1, 1],
      )
  
file_path: python-igraph/tests/test_matching.py
imports: import unittest
  from igraph import Graph, InternalError, Matching
label_desc: Use image node_id 2 for calling the MaximumBipartiteMatchingTests obj's underlying member method code with example usage: obj.testBipartiteMatchingErrors() without return types