def __getattr__(self, attr):  # pylint: disable=invalid-name
    if not self._protocol:
      raise usb_exceptions.HandleClosedError()

    val = getattr(self._protocol, attr)
    if callable(val):
      def _retry_wrapper(*args, **kwargs):
        """Wrap the retry function."""
        result = _retry_usb_function(self._num_retries, val, *args, **kwargs)
        _LOG.debug('LIBUSB FASTBOOT: %s(*%s, **%s) -> %s',
                   attr, args, kwargs, result)
        return result
      return _retry_wrapper
    return val
Gets the screenshot of the current window as a binary data.
dataset/ETHPy150Open google/openhtf/openhtf/plugs/usb/fastboot_device.py/FastbootDevice.__getattr__--crossover with--dataset/ETHPy150Open apiad/sublime-browser-integration/selenium/webdriver/remote/webdriver.py/WebDriver.get_screenshot_as_png