code: def _retry_usb_function(count, func, *args, **kwargs):
    
    helper = timeouts.RetryHelper(count)
    while True:
      try:
        return func(*args, **kwargs)
      except usb_exceptions.CommonUsbError:
        if not helper.retry_if_possible():
          raise
        time.sleep(0.1)
      else:
        break
docs: Helper function to retry USB.