def METHOD_NAME(storage, bound_method):
    @wraps(bound_method)
    def read_only(*args, **kwargs):
        # pylint:disable=protected-access
        raise storage._read_only_error
    return read_only