code: def _assign_posterior(self):
          
  
          prior_centers = self.get_centers(self.local_prior)
          posterior_centers = self.get_centers(self.local_posterior_)
          posterior_widths = self.get_widths(self.local_posterior_)
          # linear assignment on centers
          cost = distance.cdist(prior_centers, posterior_centers, 'euclidean')
          _, col_ind = linear_sum_assignment(cost)
          # reorder centers/widths based on cost assignment
          self.set_centers(self.local_posterior_, posterior_centers[col_ind])
          self.set_widths(self.local_posterior_, posterior_widths[col_ind])
          return self
docs: assign posterior to prior based on Hungarian algorithm
  
          Returns
          -------
          TFA
              Returns the instance itself.