Move `density_estimator` from demos/ to sugar.py

13 jobs for density_estimator_sugar in 12 minutes and 36 seconds (queued for 2 seconds)