def METHOD_NAME(baseline_root, test, raw=False):
    if baseline_root is not None:
        try:
            the_path = os.path.join(
                baseline_root, _WALLTIME_BASELINE_NAME, test, _WALLTIME_FILE_NAME
            )
            if os.path.exists(the_path):
                last_line = int(open(the_path, "r").readlines()[-1].split()[0])
                if raw:
                    best_walltime = last_line
                else:
                    best_walltime = None
                    for cutoff, tolerance in _WALLTIME_TOLERANCE:
                        if last_line <= cutoff:
                            best_walltime = int(float(last_line) * tolerance)
                            break
                    if best_walltime < _GLOBAL_MINUMUM_TIME:
                        best_walltime = _GLOBAL_MINUMUM_TIME
                    best_walltime += _GLOBAL_WIGGLE
                return convert_to_babylonian_time(best_walltime)
        except Exception:
            # We NEVER want a failure here to kill the run
            logger.warning("Failed to read test time: {}".format(sys.exc_info()[1]))
    return None