code: def test_list_context_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_uri = "test-source-uri"
      context_type = "foo-context-type"
      next_token = "thetoken"
      max_results = 99
  
      sagemaker_session.sagemaker_client.list_contexts.return_value = {}
      assert [] == list(
          context.Context.list(
              sagemaker_session=sagemaker_session,
              source_uri=source_uri,
              context_type=context_type,
              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(
              SourceUri="test-source-uri",
              ContextType="foo-context-type",
              CreatedBefore=created_before,
              CreatedAfter=created_after,
              SortBy="CreationTime",
              SortOrder="Ascending",
              NextToken="thetoken",
              MaxResults=99,
          )
      ]
      assert (
          expected_calls
          == sagemaker_session.sagemaker_client.list_contexts.mock_calls
      )
  
imports: from __future__ import absolute_import
  import datetime
  import unittest.mock
  import pytest
  from sagemaker.lineage import context, _api_types
  from sagemaker.lineage.action import Action
  from sagemaker.lineage.lineage_trial_component import LineageTrialComponent
  from sagemaker.lineage.query import LineageQueryDirectionEnum
label_desc: Use image node_id 9 for calling a global function with example usage: test_list_context_call_args(sagemaker_session) without return types