def only(*versions):
    def _only(method):
        @functools.wraps(method)
        def wrapper(self, *args, **kwargs):
            if list(versions) not in self.api_version:
                raise Exception(
                    "`{0}()` is not implemented for the {1} version of the api".format(
                        method.__name__, self.api_version))
            return method(self, *args, **kwargs)
        return wrapper
    return _only
dataset/ETHPy150Open contextio/Python-ContextIO/contextio/lib/resources/base_resource.py/only/swapped operands of `not in`