code: def check_version(version, range_=None):
      
      if range_ and version not in range_:
          raise RezBindError("found version %s is not within range %s"
                             % (str(version), str(range_)))
docs: 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.