<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def from_str(cls, version_str: str):
 """ Alternate constructor that accepts a string SemVer. """

        o = cls()
        o.version = version_str
        return o