def _req(self, uri, params=None):
        """ Hit a server endpoint and return the json response """
        try:
            import requests
        except __HOLE__:  # pragma: no cover
            raise ImportError("You must 'pip install requests' before using "
                              "the remote server access backend")
        response = requests.get(self.server + uri, params=params,
                                auth=self.auth)
        response.raise_for_status()
        return response.json()
dataset/ETHPy150Open mathcamp/pypicloud/pypicloud/access/remote.py/RemoteAccessBackend._req