def METHOD_NAME(method: Callable, args: Tuple[Any, ...], kwargs: Dict[str, Any]) -> None:
    try:
        response = method(*args, **kwargs)
        if response is not None or 'dialog' in method.__name__:
            response_queue.put(response)
    except Exception:
        globals.log.exception(f'error in window.{method.__name__}')