<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _extract_list_from_generator(generator):
 """ Iterates over a generator to extract all the objects and add them to a list. Useful when the objects have to be used multiple times. """


    extracted = []
    for i in generator:
        extracted.append(list(i))
    return extracted