def grab_image(self):
        # We have to open this queue before we make the request, to ensure we don't miss the response.
        queue = self._pebble.get_endpoint_queue(ScreenshotResponse)
        self._pebble.send_packet(ScreenshotRequest())
        return self._read_screenshot(queue)
Takes a screenshot. Blocks until completion, or raises a :exc:`.ScreenshotError` on failure.
dataset/ETHPy150Open pebble/libpebble2/libpebble2/services/screenshot.py/Screenshot.grab_image