code: def version_tuple(self):
      
      try:
        return tuple([int(digit, 10) for digit in self.version.split('.')])
      except (AttributeError, TypeError, ValueError):
        return None
docs: tuple[int]: version tuple or None if version is not set or invalid.