code: def setAltInterface(self, alternate):
          r
          if isinstance(alternate, Interface):
             alternate = alternate.alternateSetting
  
          self.dev.set_interface_altsetting(self.__claimed_interface, alternate)
docs: r"""Sets the active alternate setting of the current interface.
  
          Arguments:
              alternate: an alternate setting number or an Interface object.