def METHOD_NAME(self):
    """
    Checks that we error if we pass in a check function with the wrong parameters
    """
    def check_bad_args(graph_module, i):
        pass
    pm = PassManager()
    self.assertRaises(TypeError, pm.add_checks, check_bad_args)