def cw_choose(z_dim: int):
    if (z_dim == 1):
        return cw_1d
    elif (z_dim == 2):
        return cw_2d
    elif (z_dim >= 20):
        return cw
    else:
        raise ValueError('Not defined for this latent dimension')
def cw_choose(z_dim: int):
    if (z_dim == 1):
        return cw_1d
    elif (z_dim == 2):
        return cw_2d
    elif (z_dim >= 20):
        return cw
    else:
        raise ValueError('Not defined for this latent dimension')