<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _hook_id(self, info):
 """ Extract id from info. Override for custom behaviour. """

        if isinstance(info, dict) and 'id' in info.keys():
            self.id = info['id']