def is_library(cls, func): '''Return True if the function ``func`` is considered a library function.''' fn = by(func) return fn.flags & idaapi.FUNC_LIB == idaapi.FUNC_LIB