The officer must immediately return the warrant to the court and deliver to it a written inventory of the property or things taken, verified by the certificate of the officer at the foot of the inventory.