code: def _check(self):
          
          import time
  
          if self.expires_in is None or self.authenticated is None:
              return False
  
          current = time.time()
          expire_time = self.authenticated + self.expires_in
  
          return expire_time > current
docs: Check if the access token is expired or not.