CLN: convert test docstring to comment
BLD/TST: catch more spurious errors in @network decorator
Merge pull request #6151 from y-p/PR_network

BLD/TST: catch more spurious errors in @network decorator