code: def test_read_from_not_existing_resource(
      default_model_storage: ModelStorage,
  ):
      with default_model_storage.write_to(
          Resource("resource1")
      ) as temporary_directory:
          file = temporary_directory / "file.txt"
          file.write_text("test")
  
      with pytest.raises(ValueError):
          with default_model_storage.read_from(
              Resource("a different resource")
          ) as _:
              pass
  
imports: import sys
  import uuid
  from datetime import datetime
  from pathlib import Path
  from tarsafe import TarSafe
  import freezegun
  import pytest
  from _pytest.monkeypatch import MonkeyPatch
  from _pytest.tmpdir import TempPathFactory
  import rasa.shared.utils.io
  from rasa.engine.graph import SchemaNode, GraphSchema, GraphModelConfiguration
  from rasa.engine.storage.local_model_storage import LocalModelStorage, MODEL_ARCHIVE_METADATA_FILE
  from rasa.engine.storage.storage import ModelStorage, ModelMetadata
  from rasa.engine.storage.resource import Resource
  from rasa.exceptions import UnsupportedModelVersionError
  from rasa.shared.core.domain import Domain
  from rasa.shared.data import TrainingType
  from tests.engine.graph_components_test_classes import PersistableTestComponent
label_desc: Use image node_id 2 for calling a global function with example usage: test_read_from_not_existing_resource(default_model_storage) without return types