def METHOD_NAME(runtime_metrics, psutil_metrics):
    def within_threshold(a, b, epsilon):
        return abs(a - b) <= epsilon * max(abs(a), abs(b))
    # Number of threads should be precise
    if psutil_metrics[THREAD_COUNT] != runtime_metrics[THREAD_COUNT]:
        return False
    # CPU and RAM should be approximate.  These tests are checking that the category of
    # the value is correct, rather than the specific value itself.
    epsilon = 0.25
    if not within_threshold(psutil_metrics[CPU_PERCENT], runtime_metrics[CPU_PERCENT], epsilon):
        return False
    if not within_threshold(psutil_metrics[MEM_RSS], runtime_metrics[MEM_RSS], epsilon):
        return False
    return True