I would prefer we were testing the actual example function. Something like:

```from mpl_examples.pylab_examples.stackplot_demo2 import layers```

should do the trick.

This comment is probably controversial - so some agreement/disagreement from others on whether this should be done would be useful.