def METHOD_NAME(self, mode='any'):
    if (self._module, self._version) in self.LIB_STATUS_CACHE:
        return self.LIB_STATUS_CACHE[(self._module, self._version)]
    ret = self._install(self._module, self._autoinstall)
    self.LIB_STATUS_CACHE = {
        x: y
        for x, y in self.LIB_STATUS_CACHE.items()
        if x[0] != self._module
    }
    self.LIB_STATUS_CACHE[(self._module, self._version)] = ret
    return ret