def get_sleep_label(metric):
    """Gets the formated label for the given sleep metric"""
    if metric[0:3].lower() == "tst":
        return "TST (h)"
    if metric.lower() == "sol":
        return "SOL (minutes)"
    if metric.lower() == "naw":
        return "NAW"
    elif metric.lower() == "efficiency":
        return "Sleep Efficiency (%)"
    elif metric.lower() == "rem_percent":
        return "% REM"
    elif metric.lower() == "nrem_percent":
        return "% nREM"
    elif metric[0:8].lower() == "rem2nrem":
        return "REM:nREM Ratio"
    else:
        return ""