code: def test_list_trial_components_call_args(sagemaker_session):
      created_before = datetime.datetime(1999, 10, 12, 0, 0, 0)
      created_after = datetime.datetime(1990, 10, 12, 0, 0, 0)
      trial_name = "foo-trial"
      experiment_name = "foo-experiment"
      next_token = "thetoken"
      max_results = 99
  
      client = sagemaker_session.sagemaker_client
      client.list_trial_components.return_value = {}
      assert [] == list(
          _TrialComponent.list(
              sagemaker_session=sagemaker_session,
              trial_name=trial_name,
              experiment_name=experiment_name,
              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(
              TrialName="foo-trial",
              ExperimentName="foo-experiment",
              CreatedBefore=created_before,
              CreatedAfter=created_after,
              SortBy="CreationTime",
              SortOrder="Ascending",
              NextToken="thetoken",
              MaxResults=99,
          )
      ]
      assert expected_calls == client.list_trial_components.mock_calls
  
imports: from __future__ import absolute_import
  import datetime
  import unittest.mock
  from unittest.mock import patch
  import botocore
  from sagemaker import Session
  from sagemaker.experiments import _api_types
  from sagemaker.experiments._api_types import TrialComponentSearchResult, Parent, _TrialComponentStatusType
  from sagemaker.experiments.trial_component import _TrialComponent
label_desc: Use image node_id 9 for calling a global function with example usage: test_list_trial_components_call_args(sagemaker_session) without return types