code: def match(self, graph, node):
      if isinstance(node, list):
          return [], None
      if self.op == node.op:
          following = graph.outgoing(node)
          if len(following) == 1:
              following = following[0]
          return [node], following
      else:
          return [], None
  
imports: import re
label_desc: Use image node_id 2 for calling the NodePattern obj's underlying member method code with example usage: obj.match(graph, node) and returns: list,  None, list,  following, list,  None