def METHOD_NAME(test_func):
    """Augment test function to parse log files.
    `tools.create_tests` creates functions that run an LBANN
    experiment. This function creates augmented functions that parse
    the log files after LBANN finishes running, e.g. to check metrics
    or runtimes.
    Note: The naive approach is to define the augmented test functions
    in a loop. However, Python closures are late binding. In other
    words, the function would be overwritten every time we define it.
    We get around this overwriting problem by defining the augmented
    function in the local scope of another function.
    Args:
        test_func (function): Test function created by
            `tools.create_tests`.
    Returns:
        function: Test that can interact with PyTest.
    """
    test_name = test_func.__name__
    # Define test function
    def func(cluster, dirname):
        # Run LBANN experiment
        experiment_output = test_func(cluster, dirname)
        # Run ONNX model in OnnxRuntime
        input0_name = 'samples_0'
        input1_name = 'labels_0'
        session = onnxruntime.InferenceSession(onnx_model, None)
        outputs = session.run(None, {input0_name: np.zeros((1,1,28,28), dtype=np.float32), input1_name: np.zeros((1,10), dtype=np.float32)})
    # Return test function from factory function
    func.__name__ = test_name
    return func