code: def sorted_unique_labels(*ys):
      """Extract an ordered array of unique labels from one or more dask arrays
      of labels."""
      ys = (
          cp.unique(y.map_blocks(lambda x: cp.unique(x)).compute())
          for y in ys
      )
      labels = cp.unique(cp.concatenate(ys))
      return labels
  
label_desc: Use image node_id 1 for calling a global function with example usage: sorted_unique_labels() and returns: labels