<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def id_generator(size=15, random_state=None):
 """Helper function to generate random div ids. This is useful for embedding HTML into ipython notebooks."""

    chars = list(string.ascii_uppercase + string.digits)
    return ''.join(random_state.choice(chars, size, replace=True))