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:
          d1 = " ".join([form_manager.get_idx_symbol(x) for x in c1])
          d2 = " ".join([form_manager.get_idx_symbol(x) for x in c2])
          if get_split_comma(d1) == get_split_comma(d2):
              return True
          return False
      raise NotImplementedError("you should not arrive here!")
  
file_path: graph4nlp/examples/pytorch/semantic_parsing/graph2tree/jobs/src/evaluation.py
imports: from graph4nlp.pytorch.modules.evaluation.base import EvaluationMetricBase
label_desc: Use image node_id 3 for calling a global function with example usage: is_all_same(c1, c2, form_manager) and returns: False, True, True