def get_session(self, token=None, signature=None):
        if token is not None:
            access_token, access_token_secret = token
            session = self.session_obj(self.consumer_key,
                                       self.consumer_secret,
                                       access_token,
                                       access_token_secret,
                                       signature or self.signature_obj,
                                       service=self)
        else:  # pragma: no cover
            signature = signature or self.signature_obj
            session = self.session_obj(self.consumer_key,
                                       self.consumer_secret,
                                       signature=signature,
                                       service=self)
        return session
Removes expired nodes/replicas from the ring.
dataset/ETHPy150Open litl/rauth/rauth/service.py/OAuth1Service.get_session--crossover with--dataset/ETHPy150Open closeio/redis-hashring/redis_hashring/__init__.py/RingNode.cleanup