Engineering Trustworthy AI: A Developer Guide for Empirical Risk Minimization