@classmethod
    def from_values(cls, x, ndim):
        if np.ndim(x) < 2 * ndim:
            raise ValueError("Values for Wishart distribution must be at least "
                             "2-D arrays.")
        if np.shape(x)[-ndim:] != np.shape(x)[-2*ndim:-ndim]:
            raise ValueError("Values for Wishart distribution must be square "
                             "matrices, thus the two last axes must have equal "
                             "length.")
        shape = np.shape(x)[-ndim:]
        return cls(shape)
succeed iff pyclbr.readmodule_ex(modulename) corresponds
dataset/ETHPy150Open bayespy/bayespy/bayespy/inference/vmp/nodes/wishart.py/WishartMoments.from_values--crossover with--dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/test/test_pyclbr.py/PyclbrTest.checkModule