code: def test_create_with_tags(sagemaker_session):
      sagemaker_session.sagemaker_client.create_artifact.return_value = {
          "ArtifactArn": "bazz",
      }
  
      tags = [{"Key": "foo", "Value": "bar"}]
      artifact.Artifact.create(
          artifact_name="foo",
          source_uri="bar",
          tags=tags,
          sagemaker_session=sagemaker_session,
      )
  
      sagemaker_session.sagemaker_client.create_artifact.assert_called_with(
          ArtifactName="foo",
          Source={"SourceUri": "bar"},
          Tags=[{"Key": "foo", "Value": "bar"}],
      )
  
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 4 for calling a global function with example usage: test_create_with_tags(sagemaker_session) without return types