def METHOD_NAME(self, name, pkg):
    if not hasattr(pkg, '__aim_functions__'):
        return
    from aim._sdk.function import Function
    for func in pkg.__aim_functions__:
        f = Function(func, name)
        Function.registry[f.name] = f
        self._registered_functions.append(f.name)