def METHOD_NAME(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