<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _set_m2ms(self, old_m2ms):
 """ Creates the same m2m relationships that the old object had. """


        for k, v in old_m2ms.items():
            if v:
                setattr(self, k, v)