<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def filter_by(self, **filters):
        ''' Filter for the names in ``filters`` being equal to the associated
            values.  Cannot be used for sub-objects since keys must be strings'''
        for name, value in filters.items():
            self.filter(resolve_name(self.type, name) == value)
        return self