Seol mar théacs é seo: Testing quantum nonlocality by generalized quasiprobability functions