code: def __init__(self, ctx=get_ctx(), mode="rw"):
      self._mode = mode
      self._ctx = ctx
      self._sock = ctx.new(mode)
      if self._sock is None:
          raise ValueError(
              'Socket mode "{}" not supported by {}'.format(
                  mode, ctx.__class__.__name__
              )
          )
  
imports: import random
  import logging
  import multiprocessing
  import threading
  from fiber.backend import get_backend
label_desc: Use image node_id 2 to create a new Socket object  with example: obj = Socket(ctx, mode)