code: def add_watcher(self, fd, callback):
          
  
          if not isinstance(fd, int):
              fd = fd.fileno()
  
          self.callbacks[fd] = callback
          self.epoll.register(fd, EPOLLIN)
docs: Starts watching a non-blocking fd for data.