Anfonwch hwn fel neges destun: Testing quantum nonlocality by generalized quasiprobability functions