def METHOD_NAME(self, x):
    def get_distance(c):
        center = self.centers[c]
        return sum(
            (abs(center[k] - x.get(k, 0))) ** self.p for k in {*center.keys(), *x.keys()}
        )
    return min(self.centers, key=get_distance)