Sorry for my very late response. Thank you @ptrblck Yes, it works:
conda install -n test pytorch==1.9.0 torchvision torchaudio cudatoolkit=10.2 -c pytorch

However, I cannot understand why it is not listed in the previous versions section. Is there any specific reason or something?