code: def InterfaceMatcher(clazz, subclass, protocol):
      
      interface = (clazz, subclass, protocol)
  
      def Matcher(device):
          for setting in device.iterSettings():
              if GetInterface(setting) == interface:
                  return setting
  
      return Matcher
docs: Returns a matcher that returns the setting with the given interface.