code: def is_all_same(c1, c2, form_manager):
      all_same = True
      if len(c1) == len(c2):
          all_same = True
          for j in range(len(c1)):
              if c1[j] != c2[j]:
                  all_same = False
                  break
          if all_same:
              return True
      if len(c1) != len(c2) or all_same is False:
          n1 = Tree.norm_tree(
              Tree.deduplicate_tree(c1, form_manager), form_manager
          )
          n2 = Tree.norm_tree(
              Tree.deduplicate_tree(c2, form_manager), form_manager
          )
          if len(n1) == len(n2):
              all_same = True
              for j in range(len(n1)):
                  if n1[j] != n2[j]:
                      all_same = False
                      break
          else:
              return False
          if all_same:
              pass
              # print(" ".join(form_manager.get_idx_symbol_for_list(c1)))
              # print(" ".join(form_manager.get_idx_symbol_for_list(c2)))
          return all_same
      raise NotImplementedError("you should not arrive here!")
  
imports: from graph4nlp.pytorch.modules.utils.tree_utils import Tree
label_desc: Use image node_id 2 for calling a global function with example usage: is_all_same(c1, c2, form_manager) and returns: all_same, True, False