code: def getByVendorIDAndProductID(
              self, vendor_id, product_id,
              skip_on_access_error=False, skip_on_error=False):
          
          for device in self.getDeviceIterator(
                  skip_on_error=skip_on_access_error or skip_on_error,
              ):
              if device.getVendorID() == vendor_id and \
                      device.getProductID() == product_id:
                  return device
docs: Get the first USB device matching given vendor and product ids.
          Returns an USBDevice instance, or None if no present device match.
          skip_on_error (bool)
              (see getDeviceList)
          skip_on_access_error (bool)
              (see getDeviceList)