code: def test_cached_method_with_function():
      with pytest.raises(AssertionError):
  
          @rasa.shared.utils.common.cached_method
          def my_function():
              pass
  
          my_function()
  
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 4 for calling a global function with example usage: test_cached_method_with_function() without return types