def set_interface(dev, bInterfaceNumber, bAlternateSetting):
 dev.set_interface_altsetting(bInterfaceNumber, bAlternateSetting)

def set_interface ( dev , bInterfaceNumber , bAlternateSetting ) : dev . set_interface_altsetting ( bInterfaceNumber , bAlternateSetting )
set the alternate setting of the interface .