<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def visit_filter(self, _, children):
 """A filter, with optional arguments. Arguments --------- _ (node) : parsimonious.nodes.Node. children : list - 0: string, name of the filter. - 1: list of instances of ``.resources.NamedArg`` Returns ------- .resources.Filter An instance of ``.resources.Filter`` with a name and a list of arguments. The list of arguments will be ``None`` if no parenthesis. Example ------- .foo .foo() .foo(1) .foo(1, bar="baz") """


        return self.Filter(
            name=children[0],
            args=children[1],
        )