import re


def get_metrics_lines(lines):
    """
    Return subset of lines corresponding to relevant metrics data.
    """
    metrics_start = [idx for idx, l in enumerate(lines)
                     if re.search('^## METRICS CLASS', l)][0]
    metrics_end = metrics_start + 3
    return lines[metrics_start:metrics_end]