code: def _setsockopt(sock, option, value):
      """
      This wraps setting socket options since python2 vs python3 handles strings differently
      and pyzmq requires a different call. See http://pyzmq.readthedocs.io/en/latest/unicode.html
      """
      try:
          sock.setsockopt(option, value)
      except TypeError:
          sock.setsockopt_string(option, value)
  
imports: import logging
  import pickle
  import sys
  import os
  from time import sleep, time
  from traceback import format_exc
  from threading import Thread
  from psutil import pid_exists
  import zmq
  from zmq import ZMQBaseError
  from petastorm.reader_impl.pickle_serializer import PickleSerializer
  from petastorm.workers_pool import EmptyResultError, VentilatedItemProcessedMessage
  from petastorm.workers_pool.exec_in_new_process import exec_in_new_process
label_desc: Use image node_id 5 for calling a global function with example usage: _setsockopt(sock, option, value) without return types