Create a function in Python that converts a sentence to upper case.
"This is an example sentence."
def sentence_to_upper(sentence):
    return sentence.upper()

print(sentence_to_upper("This is an example sentence."))