NotImplementedError when iterating over MultiTrace object

Keep in mind that with more recent versions of PyMC you are dealing with ArviZ InferenceData objects instead of raw MultiTrace objects. So you would be doing something like this:

for val in trace.posterior['m'].sel(chain=0)[:10]:
    ...

Details about InferenceData objects are here.