code: def _write_training_metrics(self):
          
          for brain_name in self.trainers.keys():
              if brain_name in self.trainer_metrics:
                  self.trainers[brain_name].write_training_metrics()
docs: Write all CSV metrics
          :return: