class_docstr: Stores and provides output of `GraphComponents` on local disk.
class_docstr_tok: ["Stores","and","provides","output","of","`","GraphComponents","`","on","local","disk","."]
docstr: Initializes storage from archive (see parent class for full docstring).
docstr_tok: ["Initializes","storage","from","archive","(","see","parent","class","for","full","docstring",")","."]
code: def from_model_archive(
      cls, storage_path: Path, model_archive_path: Union[Text, Path]
  ) -> Tuple[LocalModelStorage, ModelMetadata]:
      """Initializes storage from archive (see parent class for full docstring)."""
      if next(storage_path.glob("*"), None):
          raise ValueError(
              f"The model storage with path '{storage_path}' is "
              f"not empty. You can only unpack model archives into an "
              f"empty model storage."
          )
  
      with windows_safe_temporary_directory() as temporary_directory:
          temporary_directory_path = Path(temporary_directory)
  
          cls._extract_archive_to_directory(
              model_archive_path, temporary_directory_path
          )
          logger.debug(
              f"Extracted model to '{temporary_directory_path}'."
          )
  
          cls._initialize_model_storage_from_model_archive(
              temporary_directory_path, storage_path
          )
  
          metadata = cls._load_metadata(temporary_directory_path)
  
          return (cls(storage_path), metadata)
  
imports: from __future__ import annotations
  import logging
  import shutil
  import sys
  import tempfile
  import uuid
  from contextlib import contextmanager
  from datetime import datetime
  from pathlib import Path
  from tarsafe import TarSafe
  from typing import Generator, Optional, Text, Tuple, Union
  import rasa.utils.common
  import rasa.shared.utils.io
  from rasa.engine.storage.storage import ModelMetadata, ModelStorage
  from rasa.engine.graph import GraphModelConfiguration
  from rasa.engine.storage.resource import Resource
  from rasa.exceptions import UnsupportedModelVersionError
  from rasa.shared.core.domain import Domain
  import rasa.model
label_desc: Use image node_id 3 for calling the LocalModelStorage obj's underlying member method code with example usage: obj.from_model_archive(cls, storage_path, model_archive_path) and returns: cls,  metadata