docstr: Dispatch IO events to _handle_recv, etc.
docstr_tok: ["Dispatch","IO","events","to","_handle_recv",",","etc","."]
code: def _handle_events(self, fd=0, events=0):
      """Dispatch IO events to _handle_recv, etc."""
      zmq_events = self._shadow_sock.get(EVENTS)
      if zmq_events & _zmq.POLLIN:
          self._handle_recv()
      if zmq_events & _zmq.POLLOUT:
          self._handle_send()
      self._schedule_remaining_events()
  
imports: from collections import namedtuple, deque
  from itertools import chain
  from zmq import EVENTS, POLLOUT, POLLIN
  import zmq
label_desc: Use image node_id 18 for calling the _AsyncSocket obj's underlying member method code with example usage: obj._handle_events(fd, events) without return types