code: def test_artifact_string_digest_run_config_set_item(
      user, sample_data, test_settings
  ):
      with wandb.init(settings=test_settings()) as run:
          run.config.dataset = f"wandb-artifact://{run.settings.base_url}/_id/{sample_data.id}"
          dataset = run.config.dataset
  
      run = wandb.Api().run(f"uncategorized/{run.id}")
      assert run.config["dataset"] == {
          "_type": "artifactVersion",
          "_version": "v0",
          "id": dataset.id,
          "version": "v0",
          "sequenceName": dataset.source_name.split(":")[0],
          "usedAs": "dataset",
      }
  
imports: import json
  from unittest import mock
  import pytest
  import wandb
label_desc: Use image node_id 7 for calling a global function with example usage: test_artifact_string_digest_run_config_set_item(user, sample_data, test_settings) without return types