def load_module(self, module):
        '''
        Introspect Ansible module.

        :param module:
        :return:
        '''
        m_ref = self._modules_map.get(module)
        if m_ref is None:
            raise LoaderError('Module "{0}" was not found'.format(module))
        mod = importlib.import_module('ansible.modules{0}'.format(
            '.'.join([elm.split('.')[0] for elm in m_ref.split(os.path.sep)])))

        return mod
def load_module ( self , module ) : m_ref = self . _modules_map . get ( module ) if m_ref is None : raise LoaderError ( 'Module "{0}" was not found' . format ( module ) ) mod = importlib . import_module ( 'ansible.modules{0}' . format ( '.' . join ( [ elm . split ( '.' ) [ 0 ] for elm in m_ref . split ( os . path . sep ) ] ) ) ) return mod
Introspect Ansible module.

        :param module:
        :return: