code: def test_log_model(
      wandb_init: Callable[..., Run],
      tmp_path: pathlib.Path,
  ):
      run = wandb_init()
      local_path = tmp_path / "boom.txt"
      local_path.write_text("testing")
      run.log_model(local_path, "test-model")
      run.finish()
  
      run = wandb_init()
      download_path = run.use_model("test-model:v0")
      file = download_path
      assert file == f"{env.get_artifact_dir()}/test-model:v0/boom.txt"
      run.finish()
  
file_path: wandb/tests/pytest_tests/system_tests/test_artifacts/test_model_workflows.py
imports: import pathlib
  from typing import Callable
  import pytest
  from wandb import env
  from wandb.sdk.wandb_run import Run
label_desc: Use image node_id 2 for calling a global function with example usage: test_log_model(wandb_init, tmp_path) without return types