<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def set_not_found_handler(self, handler, version=None):
 """Sets the not_found handler for the specified version of the api"""

        if not self.not_found_handlers:
            self._not_found_handlers = {}

        self.not_found_handlers[version] = handler