def _session_check(self):
if not os.path.exists(SESSION_FILE):<EOL><INDENT>self._log.debug("<STR_LIT>")<EOL>return False<EOL><DEDENT>with open(SESSION_FILE, '<STR_LIT:rb>') as f:<EOL><INDENT>cookies = requests.utils.cookiejar_from_dict(pickle.load(f))<EOL>self._session.cookies = cookies<EOL>self._log.debug("<STR_LIT>")<EOL><DEDENT>response = self._session.get(url=self.TEST_URL, headers=self.HEADERS)<EOL>if self.TEST_KEY in str(response.content):<EOL><INDENT>self._log.debug("<STR_LIT>")<EOL>return False<EOL><DEDENT>self._is_authenticated = True<EOL>self._process_state()<EOL>return True<EOL>
Attempt to authenticate the user through a session file.

        This process is done to avoid having to authenticate the user every
        single time. It uses a session file that is saved when a valid session
        is captured and then reused. Because sessions can expire, we need to
        test the session prior to calling the user authenticated. Right now
        that is done with a test string found in an unauthenticated session.
        This approach is not an ideal method, but it works.