code: def test_offline_link_artifact(wandb_init):
      run = wandb_init(mode="offline")
      with pytest.raises(NotImplementedError):
          run.link_artifact(
              FakeArtifact(), "entity/project/portfolio", "latest"
          )
      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 1 for calling a global function with example usage: test_offline_link_artifact(wandb_init) without return types