code: def test_create(sagemaker_session):
      sagemaker_session.sagemaker_client.add_association.return_value = {
          "AssociationArn": "bazz",
      }
      obj = association.Association.create(
          source_arn="foo",
          destination_arn="bar",
          association_type="test-type",
          sagemaker_session=sagemaker_session,
      )
      sagemaker_session.sagemaker_client.add_association.assert_called_with(
          SourceArn="foo",
          DestinationArn="bar",
          AssociationType="test-type",
      )
      assert "foo" == obj.source_arn
      assert "bar" == obj.destination_arn
      assert "test-type" == obj.association_type
  
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 1 for calling a global function with example usage: test_create(sagemaker_session) without return types