code: def test_link_model_error_artifact_type(
      wandb_init: Callable[..., Run],
      tmp_path: pathlib.Path,
  ):
      run = wandb_init()
      local_path = tmp_path / "boom.txt"
      local_path.write_text("testing")
  
      logged_artifact = run.log_artifact(
          local_path, name="test_model", type="dataset"
      )
      logged_artifact.wait()
      with pytest.raises(AssertionError):
          run.link_model(local_path, "test_portfolio", "test_model")
      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 6 for calling a global function with example usage: test_link_model_error_artifact_type(wandb_init, tmp_path) without return types