text: Title: Implement `DataTree.persist`
  Body: > we're still missing an implementation for `DataTree.persist`, which I skipped mostly because I wasn't sure how to test that. 
  
  _Originally posted by @TomNicholas in https://github.com/pydata/xarray/issues/9670#issuecomment-2435984448_
              