
    Write a function that validates whether a student risk indicator code follows the required format of lowercase letters connected by underscores in the school's early warning system database. The function should return true if the indicator code matches this format (e.g., "attendance_low_risk") and false otherwise.
    

    
import re

def text_lowercase_underscore(text):
    """
    Write a function that validates whether a student risk indicator code follows the required format of lowercase letters connected by underscores in the school's early warning system database. The function should return true if the indicator code matches this format (e.g., "attendance_low_risk") and false otherwise.
    

    """
import re

def text_lowercase_underscore(text):
    """
    Write a function that validates whether a student risk indicator code follows the required format of lowercase letters connected by underscores in the school's early warning system database. The function should return true if the indicator code matches this format (e.g., "attendance_low_risk") and false otherwise.
    

    """
    patterns = '^[a-z]+_[a-z]+$'
    if re.search(patterns, text):
        return True
    else:
        return False