<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def match(self, device):
 """Check if the device object matches this filter."""

        return all(match_value(getattr(device, k), v)
                   for k, v in self._match.items())