code: def mark_best_classification(text_log_error, classified_failure):
      
      text_log_error.metadata.best_classification = classified_failure
      text_log_error.metadata.save(update_fields=['best_classification'])
      text_log_error.metadata.failure_line.elastic_search_insert()
docs: Wrapper for setting best_classification on both TextLogError and FailureLine.
  
      Set the given ClassifiedFailure as best_classification for the given
      TextLogError. Handles the duplication of best_classification on FailureLine
      so you don't have to!