def METHOD_NAME(ignored_scopes):
    model = ModelForNameTest()
    model_modules = set()
    for _, module in model.named_modules():
        model_modules.add(module.__class__.__name__)
    model_modules = list(model_modules)
    act_modules = get_all_modules_by_type(model, model_modules, ignored_scopes=ignored_scopes)
    for module_scope, _ in act_modules.items():
        for scope in ignored_scopes:
            assert not str(module_scope).startswith(str(scope))