def connect(url='<STR_LIT>', token=None):
gh_session = None<EOL>if url == '<STR_LIT>':<EOL><INDENT>gh_session = create_session(token)<EOL><DEDENT>else:<EOL><INDENT>gh_session = create_enterprise_session(url, token)<EOL><DEDENT>if gh_session is None:<EOL><INDENT>msg = '<STR_LIT>'<EOL>raise RuntimeError(msg, url)<EOL><DEDENT>logger.info('<STR_LIT>', url)<EOL>return gh_session<EOL>
Create a GitHub session for making requests