def resolves_for(self, node):
self.node = node<EOL>self.actual_styles = node.style(*self.expected_styles.keys())<EOL>return all(<EOL>toregex(value).search(self.actual_styles[style])<EOL>for style, value in iter(self.expected_styles.items()))<EOL>
Resolves this query relative to the given node.

Args:
    node (node.Base): The node to be evaluated.

Returns:
    int: The number of matches found.