code: def test_set_tags(sagemaker_session):
      sagemaker_session.sagemaker_client.create_artifact.return_value = {
          "ArtifactArn": "artifact-arn",
      }
      obj = artifact.Artifact.create(
          artifact_name="foo",
          source_uri="bar",
          sagemaker_session=sagemaker_session,
      )
      tags = [
          {"Key": "foo1", "Value": "bar1"},
          {"Key": "foo2", "Value": "bar2"},
      ]
      sagemaker_session.sagemaker_client.add_tags.return_value = {
          "Tags": tags
      }
  
      obj.set_tags(tags=tags)
      sagemaker_session.sagemaker_client.add_tags.assert_called_with = {
          "ResourceArn": "artifact-arn",
          "Tags": [
              {"Key": "foo1", "Value": "bar1"},
              {"Key": "foo2", "Value": "bar2"},
          ],
      }
  
file_path: sagemaker-python-sdk/tests/unit/sagemaker/lineage/test_artifact.py
imports: from __future__ import absolute_import
  import datetime
  import unittest.mock
  from sagemaker.lineage import artifact, _api_types
label_desc: Use image node_id 3 for calling a global function with example usage: test_set_tags(sagemaker_session) without return types