code: def make_getter(getter: Callable) -> Callable:
      
      def get(self, timeout=10):  # pylint: disable=missing-docstring
          name = getter.__name__
          signal = '{uuid}{sep}{event}'.format(
              uuid=self._uuid,  # pylint: disable=protected-access
              sep=SEPARATOR,
              event=name
          )
          event = LightQueue(1)
          if flask.has_request_context():
              emit(signal, callback=lambda x: event.put(unpack(x)))
          else:
              sio = flask.current_app.extensions['socketio']
              sio.emit(signal, callback=lambda x: event.put(unpack(x)))
          data = event.get(timeout=timeout)
          return getter(self, data)
  
      # don't want to copy the signature in this case
      get.__doc__ = getter.__doc__
  
      return get
docs: Create an command from a method signature.