def check_version(version, range_=None):
if range_ and version not in range_:<EOL><INDENT>raise RezBindError("<STR_LIT>"<EOL>% (str(version), str(range_)))<EOL><DEDENT>
Check that the found software version is within supplied range.

    Args:
        version: Version of the package as a Version object.
        range_: Allowable version range as a VersionRange object.