##### 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
message=match.group('message'),
                path=message.path,
                line=message.line,
                column=message.column,
                level=message.level,
                code=match.group('code'),
            ))
        for notice in notices:
            display.info(notice.format(), verbosity=3)
        
        
        fatal_error_codes = {
            'import',
            'syntax',
        }
        fatal_errors = [message for message in messages if message.code in fatal_error_codes]
        if fatal_errors:
            error_message = '\n'.join(error.format() for error in fatal_errors)
            raise ApplicationError(f'Encountered {len(fatal_errors)} fatal errors reported by mypy:\n{error_message}')
        paths_set = set(paths)
        
        
        
        messages = [message for message in messages if message.path in paths_set]
        results = settings.process_errors(messages, paths)
        if results:
            return SanityFailure(self.name, messages=results, python_version=python.version)
        return SanitySuccess(self.name, python_version=python.version)
    @staticmethod
    def test_context(