<human>:  Python function to separate upper letter with underscore.
<bot>:)', r'\1_', text)

# Enter the string
text ="yellow submarine"

# Calling the function
separated_text = _separate_upper_letter_with_underscore(text)

#Remember to inspect code for bugs.