@pytest.mark.parametrize('bodies', body_list)
@pytest.mark.parametrize('multihyps', multi_list)
def test_write_model(all_mgp, bodies, multihyps):
    '\n    test the mapping for mc_simple kernel\n    '
    mgp_model = all_mgp[f'{bodies}{multihyps}']
    mgp_model.write_model(f'my_mgp_{bodies}_{multihyps}')
    mgp_model.write_model(f'my_mgp_{bodies}_{multihyps}', format='pickle')
    with pytest.warns(Warning):
        mgp_model.var_map = 'pca'
        mgp_model.as_dict()
    mgp_model.var_map = 'simple'
    mgp_model.as_dict()
test the mapping for mc_simple kernel
@pytest.mark.parametrize('bodies', body_list)
@pytest.mark.parametrize('multihyps', multi_list)
def test_write_model(all_mgp, bodies, multihyps):
    '\n    \n    '
    mgp_model = all_mgp[f'{bodies}{multihyps}']
    mgp_model.write_model(f'my_mgp_{bodies}_{multihyps}')
    mgp_model.write_model(f'my_mgp_{bodies}_{multihyps}', format='pickle')
    with pytest.warns(Warning):
        mgp_model.var_map = 'pca'
        mgp_model.as_dict()
    mgp_model.var_map = 'simple'
    mgp_model.as_dict()