How to Select Pre-Trained Code Models for Reuse? A Learning Perspective