code: def test_class_from_module_path_fails():
      module_path = "rasa.shared.core.domain.logger"
      with pytest.raises(RasaException):
          rasa.shared.utils.common.class_from_module_path(module_path)
  
file_path: rasa/tests/shared/utils/test_common.py
imports: import asyncio
  from typing import Collection, List, Optional, Text
  from unittest.mock import Mock
  import pytest
  import rasa.shared.core.domain
  import rasa.shared.utils.common
  from rasa.shared.exceptions import RasaException
label_desc: Use image node_id 7 for calling a global function with example usage: test_class_from_module_path_fails() without return types