def METHOD_NAME(self, dy_model, metrics_list, batch_data, config):
    sentence_left_size = config.get("hyper_parameters.sentence_left_size")
    sentence_right_size = config.get(
        "hyper_parameters.sentence_right_size")
    batch_size = config.get("runner.train_batch_size", 128)
    inputs = self.create_feeds(batch_data, sentence_left_size,
                               sentence_right_size)
    prediction = dy_model.forward(inputs)
    loss = self.create_loss(prediction)
    # update metrics
    print_dict = {"loss": loss}
    return loss, metrics_list, print_dict