##### 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
if is_name_in_namepace(fullname, ['ansible.module_utils', self.name]):
                    return None  
                if any(os.path.exists(candidate_path) for candidate_path in convert_ansible_name_to_absolute_paths(fullname)):
                    return self  
                return None  
            if is_name_in_namepace(fullname, ['ansible_collections']):
                if not collection_loader:
                    return self  
                if not self.restrict_to_module_paths:
                    return None  
                if is_name_in_namepace(fullname, ['ansible_collections...plugins.module_utils', self.name]):
                    return None  
                if collection_loader.find_module(fullname, path):
                    return self  
                return None  
            
            return None
        def load_module(self, fullname):
            """Raise an ImportError.
            :type fullname: str
            """
            if fullname == 'ansible.module_utils.basic':
                module = self.__load_module(fullname)
                
                module.AnsibleModule = ImporterAnsibleModule
                
                module._load_params = lambda *args, **kwargs: {}  
                return module
            raise ImportError('import of "%s" is not allowed in this context' % fullname)
        def __load_module(self, fullname):