<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def saveWeightsToFile(self, filename, mode='pickle', counter=None):
 """ Deprecated. Use saveWeights instead. """

        self.saveWeights(filename, mode, counter)