class_docstr: Matches a node against a pattern represented by a node.
class_docstr_tok: ["Matches","a","node","against","a","pattern","represented","by","a","node","."]
code: def compare_and_visit(self, node, pattern):
      self.pattern_stack.append(self.pattern)
      self.pattern = pattern
      self.generic_visit(node)
      self.pattern = self.pattern_stack.pop()
  
imports: import ast
  import gast
  from nvidia.dali._autograph.pyct import anno
  from nvidia.dali._autograph.pyct import parser
  from nvidia.dali._autograph.pyct import qual_names
label_desc: Use image node_id 2 for calling the PatternMatcher obj's underlying member method code with example usage: obj.compare_and_visit(node, pattern) without return types