an id2label dictionary mapping the class integers to their class names
py
 import json
 # simple example
 id2label = {0: 'cat', 1: 'dog'}
 with open('id2label.json', 'w') as fp:
 json.dump(id2label, fp)