code: def set_interface_altsetting(self, interface = None, alternate_setting = None):
          r
          self._ctx.managed_set_interface(self, interface, alternate_setting)
docs: r"""Set the alternate setting for an interface.
  
          When you want to use an interface and it has more than one alternate
          setting, you should call this method to select the appropriate
          alternate setting. If you call the method without one or the two
          parameters, it will be selected the first one found in the Device in
          the same way of the set_configuration method.
  
          Commonly, an interface has only one alternate setting and this call is
          not necessary. For most devices, either it has more than one
          alternate setting or not, it is not harmful to make a call to this
          method with no arguments, as devices will silently ignore the request
          when there is only one alternate setting, though the USB Spec allows
          devices with no additional alternate setting return an error to the
          Host in response to a SET_INTERFACE request.
  
          If you are in doubt, you may want to call it with no arguments wrapped
          by a try/except clause:
  
          >>> try:
          >>>     dev.set_interface_altsetting()
          >>> except usb.core.USBError:
          >>>     pass