code: def saved_model_test(mocker, model, py_deps=None):
      with pytest.raises(TypeError):
          _ = saved_model._SavedModel(model)
      kwargs = {}
      if py_deps:
          kwargs["dep_py_files"] = py_deps
      sm = saved_model._SavedModel.init(model, **kwargs)
  
      mocker.patch(
          "wandb.sdk.artifacts.artifact.ArtifactManifestEntry",
          ArtifactManifestEntryPatch,
      )
      art = wandb.Artifact("name", "type")
      art.add(sm, "model")
      assert (
          art.manifest.entries[f"model.{sm._log_type}.json"] is not None
      )
      pub_art = make_local_artifact_public(art)
      sm2 = pub_art.get("model")
      assert sm2 is not None
  
imports: import os
  import platform
  import pytest
  import wandb
  from wandb.sdk.artifacts.artifact import Artifact
  from wandb.sdk.artifacts.artifact_manifest_entry import ArtifactManifestEntry
  from wandb.sdk.data_types import saved_model
  from wandb.sdk.lib.filesystem import copy_or_overwrite_changed
  from .None import saved_model_constructors
label_desc: Use image node_id 8 for calling a global function with example usage: saved_model_test(mocker, model, py_deps) without return types