<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_motion_detect(self, enable):
 """Set motion detection."""

        if enable:
            return api.request_motion_detection_enable(self.sync.blink,
                                                       self.network_id,
                                                       self.camera_id)
        return api.request_motion_detection_disable(self.sync.blink,
                                                    self.network_id,
                                                    self.camera_id)