code: def writeTraining(self, file_obj):  # pragma: no cover
          
  
          json.dump(self.training_pairs,
                    file_obj,
                    default=serializer._to_json,
                    tuple_as_array=False,
                    ensure_ascii=True)
docs: Write to a json file that contains labeled examples
  
          Keyword arguments:
          file_obj -- file object to write training data to