code: def test_restore_cached_output_with_invalid_module(
      temp_cache: TrainingCache,
      default_model_storage: ModelStorage,
      monkeypatch: MonkeyPatch,
      cached_module: Any,
  ):
      output = TestCacheableOutput({"something to cache": "dasdaasda"})
      output_fingerprint = uuid.uuid4().hex
  
      temp_cache.cache_output(
          uuid.uuid4().hex,
          output,
          output_fingerprint,
          default_model_storage,
      )
  
      monkeypatch.setattr(
          rasa.shared.utils.common,
          "class_from_module_path",
          cached_module,
      )
  
      assert (
          temp_cache.get_cached_result(
              output_fingerprint, "some_node", default_model_storage
          )
          is None
      )
  
imports: import dataclasses
  import logging
  import shutil
  import uuid
  from pathlib import Path
  from typing import Dict, Text, Optional, Any, Callable
  from unittest.mock import Mock
  import pytest
  from _pytest.logging import LogCaptureFixture
  from _pytest.monkeypatch import MonkeyPatch
  from sqlalchemy.exc import OperationalError
  import rasa.shared.utils.io
  import rasa.shared.utils.common
  from rasa.engine.caching import LocalTrainingCache, CACHE_LOCATION_ENV, DEFAULT_CACHE_NAME, CACHE_SIZE_ENV, CACHE_DB_NAME_ENV, TrainingCache
  import tests.conftest
  from rasa.engine.storage.local_model_storage import LocalModelStorage
  from rasa.engine.storage.resource import Resource
  from rasa.engine.storage.storage import ModelStorage
label_desc: Use image node_id 8 for calling a global function with example usage: test_restore_cached_output_with_invalid_module(temp_cache, default_model_storage, monkeypatch, cached_module) without return types