Estimating a regression function under possible heteroscedastic and heavy-tailed errors. Application to shape-restricted regression | Synapse