code: def _inherit_docstrings(cls):
      """inherit docstrings from Authenticator, so we don't duplicate them"""
      for name, method in cls.__dict__.items():
          if name.startswith("_") or not callable(method):
              continue
          upstream_method = getattr(Authenticator, name, None)
          if not method.__doc__:
              method.__doc__ = upstream_method.__doc__
      return cls
  
imports: import time
  import logging
  from threading import Thread, Event
  import zmq
  from zmq.utils import jsonapi
  from zmq.utils.strtypes import bytes, unicode, b, u
  import sys
  from .base import Authenticator
label_desc: Use image node_id 1 for calling a global function with example usage: _inherit_docstrings(cls) and returns: cls