code: def write_training_data(self, features, targets):
          
  
          assert len(features) == len(targets)
  
          data = dict(zip(features, targets))
  
          with open(os.path.join(self.repopath, 'training.pkl'), 'w') as fp:
              pickle.dump(data, fp)
docs: Writes data dictionary to filename