def METHOD_NAME(self):
    if self.id_token:
        if self.id_token["exp"] >= time.time():
            return self.id_token
    else:
        for tok in self.tokens:
            try:
                _idt = tok.id_token
            except AttributeError:
                pass
            else:
                if _idt:
                    if _idt["exp"] >= time.time():
                        return _idt
    return None