class_docstr: Internal W&B Artifact model storage.
  
  _model_type_id: (str) The id of the SavedModel subclass used to serialize the model.
class_docstr_tok: ["Internal","W","&","B","Artifact","model","storage",".","_model_type_id",":","(","str",")","The","id","of","the","SavedModel","subclass","used","to","serialize","the","model","."]
code: def __init__(
      self, obj_or_path: Union[SavedModelObjType, str], **kwargs: Any
  ) -> None:
      super().__init__()
      if self.__class__ == _SavedModel:
          raise TypeError(
              "Cannot instantiate abstract SavedModel class - please use SavedModel.init(...) instead."
          )
      self._model_obj = None
      self._path = None
      self._input_obj_or_path = obj_or_path
      input_is_path = isinstance(obj_or_path, str) and os.path.exists(
          obj_or_path
      )
      if input_is_path:
          assert isinstance(obj_or_path, str)  # mypy
          self._set_obj(self._deserialize(obj_or_path))
      else:
          self._set_obj(obj_or_path)
  
      self._copy_to_disk()
      # At this point, the model will be saved to a temp path,
      # and self._path will be set to such temp path. If the model
      # provided was a path, then both self._path and self._model_obj
      # are copies of the user-provided data. However, if the input
      # was a model object, then we want to clear the model object. The first
      # accessing of the model object (via .model_obj()) will load the model
      # from the temp path.
  
      if not input_is_path:
          self._unset_obj()
  
imports: import os
  import shutil
  import sys
  from typing import TYPE_CHECKING, Any, ClassVar, Generic, List, Optional, Type, TypeVar, Union, cast
  import wandb
  from wandb import util
  from wandb.sdk.lib import runid
  from wandb.sdk.lib.hashutil import md5_file_hex
  from wandb.sdk.lib.paths import LogicalPath
  from ._private import MEDIA_TMP
  from .base_types.wb_value import WBValue
label_desc: Use image node_id 1 to create a new _SavedModel object from inherited base classes: WBValue, Generic with example: obj = _SavedModel(obj_or_path)