<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def send_data_to_server(self, data, time_out=5):
 """ Sends given data to the Server. :param data: Data to send. :type data: unicode :param time_out: Connection timeout in seconds. :type time_out: float :return: Method success. :rtype: bool """


        if not data.endswith(self.__connection_end):
            data = "{0}{1}".format(data, foundations.strings.to_string(self.__connection_end).decode("string_escape"))

        connection = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
        connection.settimeout(time_out)
        connection.connect((foundations.strings.to_string(self.__address), int(self.__port)))
        connection.send(data)
        self.__engine.notifications_manager.notify(
            "{0} | Socket connection command dispatched!".format(self.__class__.__name__))
        connection.close()
        return True