<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def filter_record(self, record):
 """ Filter record, truncating any over some maximum length """

        if len(record) >= self.max_length:
            return record[:self.max_length]
        else:
            return record