code: def match_config(filters, device, kind, default):
      
      if device is None:
          return default
      matches = (f.value(kind, device)
                 for f in filters
                 if f.has_value(kind) and f.match(device))
      return next(matches, default)
docs: Matches devices against multiple :class:`DeviceFilter`s.
  
      :param list filters: device filters
      :param Device device: device to be mounted
      :param str kind: value kind
      :param default: default value
      :returns: value of the first matching filter