def api_request(self, **kwargs):
        from gcloud.exceptions import NotFound
        self._requested.append(kwargs)
        try:
            return self._responses.pop(0)
        except __HOLE__:
            raise NotFound('miss')
dataset/ETHPy150Open GoogleCloudPlatform/gcloud-python/gcloud/monitoring/test_metric.py/_Connection.api_request