<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def gen_random_string(str_len):
 """ generate random string with specified length """

    return ''.join(
        random.choice(string.ascii_letters + string.digits) for _ in range(str_len))