Understanding Robust Machine Learning for Nonparametric Regression with Heavy-Tailed Noise