code: def test_list_associations_call_args(sagemaker_session):
      created_before = datetime.datetime(1999, 10, 12, 0, 0, 0)
      created_after = datetime.datetime(1990, 10, 12, 0, 0, 0)
      source_arn = "foo-arn"
      destination_arn = "bar-arn"
      next_token = "thetoken"
      max_results = 99
  
      sagemaker_session.sagemaker_client.list_associations.return_value = (
          {}
      )
      assert [] == list(
          association.Association.list(
              sagemaker_session=sagemaker_session,
              source_arn=source_arn,
              destination_arn=destination_arn,
              created_before=created_before,
              created_after=created_after,
              next_token=next_token,
              max_results=max_results,
              sort_by="CreationTime",
              sort_order="Ascending",
          )
      )
  
      expected_calls = [
          unittest.mock.call(
              SourceArn="foo-arn",
              DestinationArn="bar-arn",
              CreatedBefore=created_before,
              CreatedAfter=created_after,
              SortBy="CreationTime",
              SortOrder="Ascending",
              NextToken="thetoken",
              MaxResults=99,
          )
      ]
      assert (
          expected_calls
          == sagemaker_session.sagemaker_client.list_associations.mock_calls
      )
  
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 6 for calling a global function with example usage: test_list_associations_call_args(sagemaker_session) without return types