code: def interface(self, value):
          
          self._interface = value
          if isinstance(value, int):
              self._device_number = value
          else:
              self._serial_number = value
docs: Sets the interface used to connect to the device.
  
          :param value: may specify either the serial number or the device index
          :type value: string or int