def is_available(self): if not BasePlugin.is_available(self): return False if flag_matlib: return True else: return False