code: def filter(n: Node, query: str) -> CompatNodeIterator:
      
      ctx = uast()
      return CompatNodeIterator(NodeIterator(ctx.filter(query, n.internal_node), ctx))
docs: This function has the same signature as the pre-v3 filter() returning a
      compatibility CompatNodeIterator.