<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_filter(self, name):
 """Return the filter that has the given filter name. :param name: The name to search for. :return: The filter with the given name. :rtype: :class:`pytodoist.todoist.Filter` """

        for flter in self.get_filters():
            if flter.name == name:
                return flter