code: def save_target_classes(self, filename):
      
      with open(filename, 'w') as f:
        for k, v in self._target_classes.items():
          f.write('{0}.png,{1}\n'.format(k, v))
docs: Saves target classed for all dataset images into given file.