code: def test_list_trials_call_args(sagemaker_session):
      client = sagemaker_session.sagemaker_client
      created_before = datetime.datetime(1999, 10, 12, 0, 0, 0)
      created_after = datetime.datetime(1990, 10, 12, 0, 0, 0)
      experiment_obj = experiment.Experiment(
          sagemaker_session=sagemaker_session
      )
      client.list_trials.return_value = {}
      assert [] == list(
          experiment_obj.list_trials(
              created_after=created_after, created_before=created_before
          )
      )
      client.list_trials.assert_called_with(
          CreatedBefore=created_before, CreatedAfter=created_after
      )
  
imports: from __future__ import absolute_import
  import botocore.exceptions
  import pytest
  import unittest.mock
  import datetime
  from unittest.mock import patch
  from sagemaker import Session
  from sagemaker.experiments import experiment
  from sagemaker.experiments._api_types import TrialSummary
label_desc: Use image node_id 13 for calling a global function with example usage: test_list_trials_call_args(sagemaker_session) without return types