def METHOD_NAME(self):
    """
    Checks if the type-checking returns the right error.
    """
    # graph type-check
    graph_list = [(1, 2), {"node1": 1, "node2": 2}, np.array([1, 2])]
    for each_graph in graph_list:
        with self.assertRaises(TypeError) as e:
            MIS(G=each_graph)
        self.assertEqual(
            "Input problem graph must be a networkx Graph.", str(e.exception)
        )