<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def update_compatibility_decorators(binding, decorators):
 """ This optional function is called by Qt.py to modify the decorators applied to QtCompat namespace objects. Arguments: binding (str):
 The Qt binding being wrapped by Qt.py decorators (dict):
 Maps specific decorator functions to QtCompat namespace methods. See Qt._build_compatibility_members for more info. """


    def _widgetDecorator(some_function):
        def wrapper(*args, **kwargs):
            ret = some_function(*args, **kwargs)
            # Modifies the returned value so we can test that the
            # decorator works.
            return "Test: {}".format(ret)
        # preserve docstring and name of original function
        wrapper.__doc__ = some_function.__doc__
        wrapper.__name__ = some_function.__name__
        return wrapper

    # Assign a different decorator for the same method name on each class
    def _mainWindowDecorator(some_function):
        def wrapper(*args, **kwargs):
            ret = some_function(*args, **kwargs)
            # Modifies the returned value so we can test that the
            # decorator works.
            return "QMainWindow Test: {}".format(ret)
        # preserve docstring and name of original function
        wrapper.__doc__ = some_function.__doc__
        wrapper.__name__ = some_function.__name__
        return wrapper
    decorators.setdefault("QWidget", {})["windowTitleDecorator"] = (
        _widgetDecorator
    )
    decorators.setdefault("QMainWindow", {})["windowTitleDecorator"] = (
        _mainWindowDecorator
    )