This can be handled with a custom writer.
BasicWriter just does not do these calculations by default, though you could calculate them yourself possibly by enabling bbox_tight and bbox_loose and computing the difference.
BasicWriter serves as an example of accessing annotators and writing to disk, more complex behavior needs to use a different writer such as Kitti or writing your own