<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_flashing(self, duration, hsv1, hsv2):
 """Turn the bulb on, flashing with two colors."""

        self.set_transition_time(100)
        for step in range(0, int(duration/2)):
            self.set_color_hsv(hsv1[0], hsv1[1], hsv1[2])
            time.sleep(1)
            self.set_color_hsv(hsv2[0], hsv2[1], hsv2[2])
            time.sleep(1)