<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def update(self):
 """ Update the state of the collision detectors. """


        for s in self.sensors:
            s.colliding = self.io.get_collision_state(collision_name=s.name)