Dualities And Curved Space Partition Functions Of Supersymmetric Theories