
    Write a function that validates whether a student's learning path code follows the correct format, where course modules must be written in lowercase letters and connected by underscores (e.g., "basic_math_algebra"). The function should return true if the learning path code is properly formatted, and false otherwise.
    

    
import re

def text_lowercase_underscore(text):
    """
    Write a function that validates whether a student's learning path code follows the correct format, where course modules must be written in lowercase letters and connected by underscores (e.g., "basic_math_algebra"). The function should return true if the learning path code is properly formatted, and false otherwise.
    

    """
import re

def text_lowercase_underscore(text):
    """
    Write a function that validates whether a student's learning path code follows the correct format, where course modules must be written in lowercase letters and connected by underscores (e.g., "basic_math_algebra"). The function should return true if the learning path code is properly formatted, and false otherwise.
    

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