Evaluating Loss Functions for Graph Neural Networks: Towards Pretraining and Generalization