code: def check_list(self, node_list, pattern_list):
          
          if len(node_list) != len(pattern_list):
              return False
          else:
              return all(Check(node_elt,
                               self.placeholders).visit(pattern_list[i])
                         for i, node_elt in enumerate(node_list))
docs: Check if list of node are equal.