<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def subdomain_row_factory(cls, cursor, row):
 """ Dict row factory for subdomains """

        d = {}
        for idx, col in enumerate(cursor.description):
            d[col[0]] = row[idx]

        return d