Since this module is the one responsible for generating the metadata, consider adding an example in the module-level docstring. That will save time for someone new coming in here in case the metadata format is busted or needs to change so they can see what it's supposed to be doing.