<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def list2dict(list_of_options):
 """Transforms a list of 2 element tuples to a dictionary"""

    d = {}
    for key, value in list_of_options:
        d[key] = value
    return d