code: def cluster_labels_A(hdf5_file, c, lock, I, rows_slice):
      
  
      with Worker.hdf5_lock:
          with tables.open_file(hdf5_file, 'r+') as fileh:
              S = fileh.root.aff_prop_group.similarities
              s = S[rows_slice, ...]
          
      s = np.argmax(s[:, I], axis = 1)
            
      with lock:        
          c[rows_slice] = s[:]
          
      del s
docs: One of the task to be performed by a pool of subprocesses, as the first
          step in identifying the cluster labels and indices of the cluster centers
          for Affinity Propagation clustering.