code: def collate_labels_batch(y_list, node_level=False):
      if node_level:
          n_max = max([x.shape[0] for x in y_list])
          return pad_jagged_array(y_list, (n_max, -1))
      else:
          return np.array(y_list)
  
file_path: spektral/spektral/data/utils.py
imports: import numpy
  import tensorflow
  from scipy import sparse
  from spektral.utils import pad_jagged_array
  from spektral.utils.sparse import sp_matrix_to_sp_tensor
label_desc: Use image node_id 11 for calling a global function with example usage: collate_labels_batch(y_list, node_level) and returns: pad_jagged_array, np