What is a file format?
It's whatever PRONOM, DROID, Siegried, Archivematica, and other format characterization tools say it is.
This code parses output from file format registries, file format characterization tools, and format policy registries to give a summarize the formats in a given collection.