<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def on_records(self, records):
 """ Called when one or more RECORD messages have been received. """

        handler = self.handlers.get("on_records")
        if callable(handler):
            handler(records)