Week 4 two_layer_model

There is a topic about that on the DLS FAQ Thread.

Not sure this is applicable in your case, but please note as a general matter that copying solutions off the Internet is a) against the rules and b) may very well be a waste of time because the courses were heavily updated in April 2021. Any solution you find out there may pre-date that upgrade. You can’t just copy things and expect them to work.