code: def _serve_one(child_r, fds, unused_fds, handlers):
      # close unnecessary stuff and reset signal handlers
      signal.set_wakeup_fd(-1)
      for sig, val in handlers.items():
          signal.signal(sig, val)
      for fd in unused_fds:
          os.close(fd)
  
      (
          _forkserver._forkserver_alive_fd,
          resource_tracker._resource_tracker._fd,
          *_forkserver._inherited_fds,
      ) = fds
  
      # Run process object received over pipe
      parent_sentinel = os.dup(child_r)
      code = spawn._main(child_r, parent_sentinel)
  
      return code
  
imports: import errno
  import os
  import selectors
  import signal
  import socket
  import struct
  import sys
  import threading
  import warnings
  from .None import connection
  from .None import process
  from .context import reduction
  from .None import resource_tracker
  from .None import spawn
  from .None import util
label_desc: Use image node_id 2 for calling a global function with example usage: _serve_one(child_r, fds, unused_fds, handlers) and returns: code