def test_range_obj(self):
        start = self.min
        stop = start + 20
        midpt = (start + stop) / 2
        field = self.field(range(start, stop))
        assert start in field
        assert midpt in field
        assert not stop in field
        assert not (stop + 1) in field
Makes a function memoizing the result for each argument and device.
dataset/ETHPy150Open ahawker/crython/tests/test_field.py/CronField.test_range_obj--crossover with--dataset/ETHPy150Open pfnet/chainer/chainer/cuda.py/memoize