<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def cast_callback(value):
 """Override `cast_callback` method. """

        # Postgresql / MySQL drivers change the format on 'TIMESTAMP' columns;

        if 'T' in value:
            value = value.replace('T', ' ')

        return datetime.strptime(value.split('.')[0], '%Y-%m-%d %H:%M:%S')