dependency check for doctests via a decorator
temporarily blacklist latex_ex until Issue 3969 is resolved