code: def is_all_same(c1, c2):
      if len(c1) == len(c2):
          all_same = True
          for j in range(len(c1)):
              if c1[j] != c2[j]:
                  all_same = False
                  break
          return all_same
      else:
          return False
  
imports: import random
  import time
  import warnings
  import numpy
  import torch
  import torch.nn.functional
  import torch.nn.init
  from torch import nn, optim
  from ....modules.prediction.generation.TreeBasedDecoder import StdTreeDecoder, create_mask
  from ....modules.utils.tree_utils import DataLoader, Tree, to_cuda
label_desc: Use image node_id 5 for calling a global function with example usage: is_all_same(c1, c2) and returns: all_same, False