``` .. testsetup:: * from collections import * import itertools __name__ = '<doctest>' ``` LIke here https://github.com/python/cpython/blob/master/Doc/library/collections.rst#id3