code: def _assign_clusters(X, centers):
      
      dist2cents = scipy.spatial.distance.cdist(X, centers, metric='seuclidean')
      membs = np.argmin(dist2cents, axis=1)
  
      return(membs)
docs: Assignment Step:
             assign each point to the closet cluster center