Anomalous Sound Detection Using Audio Representation with Machine ID Based Contrastive Learning Pretraining