code: def test_set_tags(sagemaker_session):
      sagemaker_session.sagemaker_client.add_association.return_value = {
          "AssociationArn": "association-arn",
      }
      obj = association.Association.create(
          source_arn="foo",
          destination_arn="bar",
          association_type="test-type",
          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": "association-arn",
          "Tags": [
              {"Key": "foo1", "Value": "bar1"},
              {"Key": "foo2", "Value": "bar2"},
          ],
      }
  
file_path: sagemaker-python-sdk/tests/unit/sagemaker/lineage/test_association.py
imports: from __future__ import absolute_import
  import datetime
  import unittest.mock
  from sagemaker.lineage import association, _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