'Invoke an Ansible module from a check.
Invoke stored _execute_module, normally copied from the action
plugin, with its params and the task_vars and tmp given at
check initialization. No positional parameters beyond these
are specified. If it\'s necessary to specify any of the other
parameters to _execute_module then that should just be invoked
directly (with awareness of changes in method signature per
Ansible version).
So e.g. check.execute_module("foo", dict(arg1=...))
Return: result hash from module execution.'

def execute_module(self, module_name=None, module_args=None):

    if (self._execute_module is None):
        raise NotImplementedError((self.__class__.__name__ + '    invoked    execute_module    without    providing    the    method    at    initialization.'))
    return self._execute_module(module_name, module_args, self.tmp, self.task_vars)
