A brief review of contrastive learning applied to astrophysics