def fake_requests_get(url, params=None):
api = urlparse.urlparse(url)<EOL>url = urlparse.urlparse(params['<STR_LIT:url>'])<EOL>resource = os.path.join('<STR_LIT>', '<STR_LIT>', url.netloc,<EOL>api.path.strip('<STR_LIT:/>') + '<STR_LIT>')<EOL>with open(resource, '<STR_LIT:rb>') as src:<EOL><INDENT>return FakeResponse(json.loads(src.read().decode('<STR_LIT:utf-8>')))<EOL><DEDENT>
A stub `requests.get()` implementation.