def normalize(narray, order=2, axis=1):
    norm = np.linalg.norm(narray, ord=order, axis=axis, keepdims=True)
    return ((narray / norm) + np.finfo(np.float32).eps)
def normalize(narray, order=2, axis=1):
    norm = np.linalg.norm(narray, ord=order, axis=axis, keepdims=True)
    return ((narray / norm) + np.finfo(np.float32).eps)