code: def test_save(sagemaker_session):
      obj = artifact.Artifact(
          sagemaker_session,
          artifact_arn="test-arn",
          artifact_name="foo",
          properties={"k1": "v1", "k2": "v2"},
          properties_to_remove=["r1"],
      )
  
      sagemaker_session.sagemaker_client.update_artifact.return_value = (
          {}
      )
      obj.save()
  
      sagemaker_session.sagemaker_client.update_artifact.assert_called_with(
          ArtifactArn="test-arn",
          ArtifactName="foo",
          Properties={"k1": "v1", "k2": "v2"},
          PropertiesToRemove=["r1"],
      )
  
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 9 for calling a global function with example usage: test_save(sagemaker_session) without return types