@defer.inlineCallbacks
    def get_user_by_access_token(self, token):
        try:
            ret = yield self.get_user_from_macaroon(token)
        except AuthError:
            # TODO(daniel): Remove this fallback when all existing access tokens
            # have been re-issued as macaroons.
            ret = yield self._look_up_user_by_access_token(token)
        defer.returnValue(ret)
Nonmonotone line search from [1]
dataset/ETHPy150Open matrix-org/synapse/synapse/api/auth.py/Auth.get_user_by_access_token--crossover with--dataset/ETHPy150Open scipy/scipy/scipy/optimize/linesearch.py/_nonmonotone_line_search_cheng