def test_take(self, space):
        w_res = space.execute("return [1, 2, 3, 4, 5].take(2)")
        assert self.unwrap(space, w_res) == [1, 2]
        w_res = space.execute("return [1, 2, 3, 4, 5].take(0)")
        assert self.unwrap(space, w_res) == []
        w_res = space.execute("return [].take(2)")
        assert self.unwrap(space, w_res) == []
dataset/ETHPy150Open topazproject/topaz/tests/modules/test_enumerable.py/TestEnumberable.test_take/original