def random_id(length):
def char():<EOL><INDENT>"""<STR_LIT>"""<EOL>return random.choice(string.ascii_letters + string.digits)<EOL><DEDENT>return "<STR_LIT>".join(char() for _ in range(length))<EOL>
Generates a random ID of given length