<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_div_id_chart(prefix="chart_id", digits=8):
 """Generate a random id for div chart. """

    choices = (random.randrange(0, 52) for _ in range(digits))
    return prefix + "".join((string.ascii_letters[x] for x in choices))