Code Supplement for "Optimal Shrinkage of Singular Values"