<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def is_transversion(self):
 """Is this variant a pyrimidine to purine change or vice versa"""

        return self.is_snv and is_purine(self.ref) != is_purine(self.alt)