Question about the 'allocate' module in PYNQ

Greetings:
I’m recently using Xilinx PYNQ frame to complete a DMA transfer task. I followed the examples on the PYNQ website and run into the problem that when I do ‘from pynq import allocate’, an error occurs saying ’ ImportError: cannot import name ‘allocate’ '. And when I check the PYNQ module, it goes like this ’ AttributeError: module ‘pynq’ has no attribute ‘allocate’ '. So how can I fixed this problem, where can I get this ‘allocate’ ?

Which version of PYNQ are you using? allocate is new in v2.5

Cathal