<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _run_hooks(self):
 """Calls any registered hooks providing the current state."""

        for hook in self.hooks:
            getattr(self, hook)(self._state)