code: def test_trial_analytics_dataframe_filter_trials_search_exp_with_sort(
      mock_session,
  ):
      mock_session.sagemaker_client.search.return_value = {
          "Results": []
      }
  
      search_exp = {
          "Filters": [
              {
                  "Name": "Tags.someTag",
                  "Operator": "Equals",
                  "Value": "someValue",
              }
          ]
      }
      analytics = ExperimentAnalytics(
          experiment_name="someExperiment",
          search_expression=search_exp,
          sort_by="Tags.someTag",
          sort_order="Ascending",
          sagemaker_session=mock_session,
      )
  
      analytics.dataframe()
  
      expected_search_exp = {
          "Filters": [
              {
                  "Name": "Tags.someTag",
                  "Operator": "Equals",
                  "Value": "someValue",
              },
              {
                  "Name": "Parents.ExperimentName",
                  "Operator": "Equals",
                  "Value": "someExperiment",
              },
          ]
      }
  
      mock_session.sagemaker_client.search.assert_called_with(
          Resource="ExperimentTrialComponent",
          SearchExpression=expected_search_exp,
          SortBy="Tags.someTag",
          SortOrder="Ascending",
      )
  
file_path: sagemaker-python-sdk/tests/unit/test_experiments_analytics.py
imports: from __future__ import absolute_import
  import mock
  import pytest
  import pandas
  from collections import OrderedDict
  from sagemaker.analytics import ExperimentAnalytics
label_desc: Use image node_id 10 for calling a global function with example usage: test_trial_analytics_dataframe_filter_trials_search_exp_with_sort(mock_session) without return types