def METHOD_NAME(app, modname):
    if modname == 'not_a_package':
        source = (app.srcdir / 'not_a_package/__init__.py').read_text(encoding='utf8')
        tags = {
            'func1': ('def', 1, 1),
            'Class1': ('class', 1, 1),
            'not_a_package.submodule.func1': ('def', 1, 1),
            'not_a_package.submodule.Class1': ('class', 1, 1),
        }
    else:
        source = (app.srcdir / 'not_a_package/submodule.py').read_text(encoding='utf8')
        tags = {
            'not_a_package.submodule.func1': ('def', 11, 15),
            'Class1': ('class', 19, 22),
            'not_a_package.submodule.Class1': ('class', 19, 22),
            'Class3': ('class', 25, 30),
            'not_a_package.submodule.Class3.class_attr': ('other', 29, 29),
        }
    return (source, tags)