class_docstr: A stateful poll interface that mirrors Python's built-in poll.
class_docstr_tok: ["A","stateful","poll","interface","that","mirrors","Python","'s","built-in","poll","."]
docstr: Remove a 0MQ socket or native fd for I/O monitoring.
  
  Parameters
  ----------
  socket : Socket
      The socket instance to stop polling.
docstr_tok: ["Remove","a","0MQ","socket","or","native","fd","for","I\/O","monitoring",".","Parameters","--","--","--","--","--","socket",":","Socket","The","socket","instance","to","stop","polling","."]
code: def unregister(self, socket):
      """Remove a 0MQ socket or native fd for I/O monitoring.
  
      Parameters
      ----------
      socket : Socket
          The socket instance to stop polling.
      """
      idx = self._map.pop(socket)
      self.sockets.pop(idx)
      # shift indices after deletion
      for socket, flags in self.sockets[idx:]:
          self._map[socket] -= 1
  
file_path: catboost/contrib/python/pyzmq/py2/zmq/sugar/poll.py
imports: import zmq
  from zmq.backend import zmq_poll
  from .constants import POLLIN, POLLOUT, POLLERR
label_desc: Use image node_id 5 for calling the Poller obj's underlying member method code with example usage: obj.unregister(socket) without return types