Unified Pretraining for Recommendation via Task Hypergraphs