def partition_suite(suite, classes, bins):
    for test in suite:
        if isinstance(test, unittest.TestSuite):
            partition_suite(test, classes, bins)
        else:
            for i in range(len(classes)):
                if isinstance(test, classes[i]):
                    bins[i].addTest(test)
                    break
            else:
                bins[-1].addTest(test)
At the mode, compute the hessian and effective covariance matrix.
dataset/ETHPy150Open golismero/golismero/thirdparty_libs/django/test/simple.py/partition_suite--crossover with--dataset/ETHPy150Open SheffieldML/GPy/GPy/inference/latent_function_inference/laplace.py/Laplace.mode_computations