<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def generate_key(low=7, high=10, lower_only=False):
 """Gets a random alphanumeric key between low and high characters in length. """

    return random_alphanum(length=randint(7, 10), lower_only=lower_only)