def _decorated_path(spath, ipython=True):
<EOL>return any([p in spath for p in _pack_paths])<EOL>
Checks whether the specified code path is from a package that has been
    decorated by `acorn`.

    Args:
        spath (str): path to the module code file where the function was
          defined.
        ipython (bool): when True, any code source paths in the stack with
          "ipython-input" in the path are included as well.