<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def to_dicts(recarray):
 """convert record array to a dictionaries"""

    for rec in recarray:
        yield dict(zip(recarray.dtype.names, rec.tolist()))