_source is one method of namedtuple, specified in 8.3. collections — Container datatypes — Python 3.6.4rc1 documentation. An example of its usage: In [90]: Book = namedtuple(‘Book’, ‘name, author’) In [91]: Book._source Out[91]: “from builtins import property as _property, tuple as _tuple\nfrom operator import itemgetter as _itemgetter\nfrom collections import OrderedDict\n\nclass Book(tuple):\n ‘Book(name, author)’\n\n __slots__ =Read more