def _set_session():
global __SESSION<EOL>global __USER_ID<EOL>if __SESSION is None:<EOL><INDENT>try:<EOL><INDENT>__SESSION = AuthorizedSession(google.auth.default(['<STR_LIT>',<EOL>'<STR_LIT>'])[<NUM_LIT:0>])<EOL>health()<EOL>__USER_ID = id_token.verify_oauth2_token(__SESSION.credentials.id_token,<EOL>Request(session=__SESSION))['<STR_LIT:email>']<EOL><DEDENT>except (DefaultCredentialsError, RefreshError) as gae:<EOL><INDENT>if os.getenv('<STR_LIT>', '<STR_LIT>').startswith('<STR_LIT>'):<EOL><INDENT>raise<EOL><DEDENT>logging.warning("<STR_LIT>")<EOL>try:<EOL><INDENT>subprocess.check_call(['<STR_LIT>', '<STR_LIT>', '<STR_LIT>',<EOL>'<STR_LIT>', '<STR_LIT>'])<EOL>__SESSION = AuthorizedSession(google.auth.default(['<STR_LIT>',<EOL>'<STR_LIT>'])[<NUM_LIT:0>])<EOL><DEDENT>except subprocess.CalledProcessError as cpe:<EOL><INDENT>if cpe.returncode < <NUM_LIT:0>:<EOL><INDENT>logging.exception("<STR_LIT>",<EOL>cpe.cmd, -cpe.returncode)<EOL><DEDENT>else:<EOL><INDENT>logging.exception("<STR_LIT>", cpe.cmd,<EOL>cpe.returncode)<EOL><DEDENT>raise gae<EOL><DEDENT><DEDENT><DEDENT>
Sets global __SESSION and __USER_ID if they haven't been set