##### SUMMARY

Implement `find_spec` and `exec_module` in the `RestrictedModuleLoader` for Python 3.10 and later. This depends on updating the collection loader first.

See also: https://github.com/ansible/ansible/issues/72952

Depends on: https://github.com/ansible/ansible/issues/74660

##### ISSUE TYPE

Feature Idea

##### COMPONENT NAME

test/lib/ansible_test/_data/sanity/import/importer.py
warnings.filterwarnings(
                    "ignore",
                    r"main\.<locals>\.RestrictedModuleLoader\.find_spec\(\) not found; falling back to find_module\(\)",
                )
                
                
                
                warnings.filterwarnings(
                    "ignore",
                    r"main\.<locals>\.RestrictedModuleLoader\.exec_module\(\) not found; falling back to load_module\(\)",
                )
                
                warnings.filterwarnings(
                    "ignore",
                    r"_Ansible.*Finder\.find_spec\(\) not found; falling back to find_module\(\)",
                )
                
                warnings.filterwarnings(
                    "ignore",
                    r"_Ansible.*Loader\.exec_module\(\) not found; falling back to load_module\(\)",
                )
            try:
                yield
            finally:
                sys.stdout = old_stdout
                sys.stderr = old_stderr
    run(import_type == 'module')
if __name__ == '__main__':
    main()