[PATCH v3 24/38] dm: core: Add a function to create an empty tree