<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def construct(cls, name, version=None):
 """Create a VersionedObject directly from an object name and version. Args: name: Object name string. version: Version object. """

        other = VersionedObject(None)
        other.name_ = name
        other.version_ = Version() if version is None else version
        return other