def test_sub_K3_D2(self, K=3, D=2):
    A = ParamBag(K=K,D=D)
    A.setField('xxT', np.random.randn(K,D,D), dims=('K','D','D'))
    B = ParamBag(K=K,D=D)
    B.setField('xxT', np.random.randn(K,D,D), dims=('K','D','D'))
    C = B - A
    assert np.allclose(C.xxT, A.xxT - B.xxT)
dataset/ETHPy150Open daeilkim/refinery/refinery/bnpy/bnpy-dev/tests/suffstats/TestParamBag.py/TestParamBag.test_sub_K3_D2/swapped operands of `-`