@classmethod<EOL><INDENT>def construct(cls, name, range=None):<DEDENT>
other = Requirement(None)<EOL>other.name_ = name<EOL>other.range_ = VersionRange() if range is None else range<EOL>return other<EOL>
Create a requirement directly from an object name and VersionRange.

        Args:
            name: Object name string.
            range: VersionRange object. If None, an unversioned requirement is
                created.