<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_mode_send(self, target_system, base_mode, custom_mode, force_mavlink1=False):
                '''
                THIS INTERFACE IS DEPRECATED. USE COMMAND_LONG with
                MAV_CMD_DO_SET_MODE INSTEAD. Set the system mode, as
                defined by enum MAV_MODE. There is no target component
                id as the mode is by definition for the overall
                aircraft, not only for one component.

                target_system             : The system setting the mode (uint8_t)
                base_mode                 : The new base mode (uint8_t)
                custom_mode               : The new autopilot-specific mode. This field can be ignored by an autopilot. (uint32_t)

                '''
                return self.send(self.set_mode_encode(target_system, base_mode, custom_mode), force_mavlink1=force_mavlink1)