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 _tmp_path(cls: Type["_SavedModel"]) -> str:
      # Generates a tmp path under our MEDIA_TMP directory which confirms to the file
      # or folder preferences of the class.
      assert isinstance(
          cls._path_extension, str
      ), "_path_extension must be a string"
      tmp_path = os.path.abspath(
          os.path.join(MEDIA_TMP.name, runid.generate_id())
      )
      if cls._path_extension != "":
          tmp_path += "." + cls._path_extension
      return tmp_path
  
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 10 for calling the _SavedModel obj's underlying member method code with example usage: obj._tmp_path(cls) and returns: tmp_path