
    Write a function that validates transaction codes in the bank's fraud detection system by checking if they follow the standard format of lowercase letters connected by underscores. The function should return true if the transaction code matches this required pattern (like "transfer_domestic_atm"), and false for any non-compliant formats.
    

    
import re

def text_lowercase_underscore(text):
    """
    Write a function that validates transaction codes in the bank's fraud detection system by checking if they follow the standard format of lowercase letters connected by underscores. The function should return true if the transaction code matches this required pattern (like "transfer_domestic_atm"), and false for any non-compliant formats.
    

    """
import re

def text_lowercase_underscore(text):
    """
    Write a function that validates transaction codes in the bank's fraud detection system by checking if they follow the standard format of lowercase letters connected by underscores. The function should return true if the transaction code matches this required pattern (like "transfer_domestic_atm"), and false for any non-compliant formats.
    

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