code: def test_caching_cacheable_fails(
      tmp_path: Path,
      caplog: LogCaptureFixture,
      temp_cache: TrainingCache,
      default_model_storage: ModelStorage,
  ):
      fingerprint_key = uuid.uuid4().hex
  
      # `tmp_path` is not a dict and will hence fail to be cached
      # noinspection PyTypeChecker
      output = TestCacheableOutput(tmp_path)
      output_fingerprint = uuid.uuid4().hex
  
      with caplog.at_level(logging.ERROR):
          temp_cache.cache_output(
              fingerprint_key,
              output,
              output_fingerprint,
              default_model_storage,
          )
  
      caplog_error_records = list(
          filter(
              lambda x: "failed to send traces to Datadog Agent"
              not in x[2],
              caplog.record_tuples,
          )
      )
      assert len(caplog_error_records) == 1
  
      assert (
          temp_cache.get_cached_output_fingerprint(fingerprint_key)
          == output_fingerprint
      )
  
      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 7 for calling a global function with example usage: test_caching_cacheable_fails(tmp_path, caplog, temp_cache, default_model_storage) without return types