code: def check(self):
          
          self.log.debug('Testing for a valid login session')
          # If our cookie jar is empty, we obviously don't have a valid login session
          if not len(self.cookiejar):
              return False
  
          # Test our login session and make sure it's still active
          return requests.get(self.TEST_URL, cookies=self.cookiejar).status_code == 200
docs: Check if we have an active login session set
          @rtype: bool