code: def _watch_callback(obj_weakref, method_name, *args, **kwargs):
      
      obj = obj_weakref()
      if obj is None:
          return
      getattr(obj, method_name)(*args, **kwargs)
docs: A callback handler for the ControlConnection that tolerates
      weak references.