code: def create_socketpair(size=None):
      
      parentfp, childfp = socket.socketpair()
      parentfp.setsockopt(socket.SOL_SOCKET,
                          socket.SO_SNDBUF,
                          size or mitogen.core.CHUNK_SIZE)
      childfp.setsockopt(socket.SOL_SOCKET,
                         socket.SO_RCVBUF,
                         size or mitogen.core.CHUNK_SIZE)
      return parentfp, childfp
docs: Create a :func:`socket.socketpair` to use for use as a child process's UNIX
      stdio channels. As socket pairs are bidirectional, they are economical on
      file descriptor usage as the same descriptor can be used for ``stdin`` and
      ``stdout``. As they are sockets their buffers are tunable, allowing large
      buffers to be configured in order to improve throughput for file transfers
      and reduce :class:`mitogen.core.Broker` IO loop iterations.