def METHOD_NAME(path, t):
    print(f'parsing init file {path}')
    category = path.parts[-4].split('_')[1]
    context = f'{category[:-1]}_{path.parts[-2]}'
    d = {}
    exec(path.read_text(), d)
    for field in ['label', 'description', 'tooltip', '__doc__']:
        if field in d:
            t.add(context, d[field])
    t.add(context, d['__doc__'])
    if 'category' in d:
        t.add(context, d['category'])
    if 'controls' in d:
        for control in d['controls']:
            for field in ['label', 'info', 'tooltip', 'prefix', 'suffix']:
                if field in control:
                    t.add(context, control[field])