def test_encode_decode(self):
        topo_X = np.random.randn(1, 20, 25, 5)
        rings = [5]
        output = encode(topo_X, rings)
        reconstruct = decode(output, (20, 25, 5), rings)
        np.testing.assert_allclose(encode(reconstruct, rings), output)
tests that if the ratio of Cs to Ds is less than e then strategy co-operates
dataset/ETHPy150Open lisa-lab/pylearn2/pylearn2/datasets/tests/test_retina.py/test_retina.test_encode_decode--crossover with--dataset/ETHPy150Open Axelrod-Python/Axelrod/axelrod/tests/unit/test_mathematicalconstants.py/Teste.test_when_less_than_e