modules_transform refactor: find out Module Type.
added funcion to inspect