def METHOD_NAME(self, name, version):
    with self._lock:
        return (
            self._active is not None
            and name == self._active.name
            and version == self._active.version)