The ability to write a production-level code is one of the most sought-after skills for a data scientist role.

100% agree. Most posts on this subject don't actually help data scientists think about how to write better code; instead, they give some easy answer like "use XYZ product" or "wrap your code behind a RESTful API". These suggestions are not wrong, per se, but they're certainly inadequate.