def train(self):
    avg_loss = train(self.model, self.device, self.train_dataloader, self.optimizer)
    return avg_loss
def train(self):
    avg_loss = train(self.model, self.device, self.train_dataloader, self.optimizer)
    return avg_loss