code: def _recalculateCenters(y, balancedCluster, k):
      Centers = []
      kAux = 0
      while kAux < k:
          vectorAux = np.zeros(len(y))
          for i in range(0, len(balancedCluster)):
              if int(kAux) == int(balancedCluster[i]):
                  # We have to fill the vector
                  for j in range(0, len(y)):
                      vectorAux[j] += y[j, i]
  
          vectorAux /= k
          Centers.append(vectorAux)
          kAux += 1
      return Centers
  
imports: import math
  import numpy
label_desc: Use image node_id 4 for calling a global function with example usage: _recalculateCenters(y, balancedCluster, k) and returns: Centers