<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def verify(self):
 """Returns the card type if valid else None."""

        if self.is_number() and not self.is_test() and self.is_mod10():
            return self.get_type()
        return None