def get_package_libraries(pkg):
    for entry in walk_packages(pkg.__path__, pkg.__name__ + '.'):
        try:
            module = import_module(entry[1])
        except ImportError as e:
            raise InvalidTemplateLibrary(
                "Invalid template library specified. ImportError raised when "
                "trying to load '%s': %s" % (entry[1], e)
            )

        if hasattr(module, 'register'):
            yield entry[1]
Helper make an annotation
dataset/ETHPy150Open django/django/django/template/backends/django.py/get_package_libraries--crossover with--dataset/ETHPy150Open neurodata/ndstore/test/ramon.py/makeAnno