code: def test_save(sagemaker_session):
      client = sagemaker_session.sagemaker_client
      obj = _Trial(
          sagemaker_session,
          trial_name="foo",
          experiment_name="whizz",
          display_name="bar",
          tags=[{"Key": "foo", "Value": "bar"}],
      )
      client.update_trial.return_value = {}
      obj.save()
  
      client.update_trial.assert_called_with(
          TrialName="foo",
          DisplayName="bar",
      )
  
imports: from __future__ import absolute_import
  import botocore
  import pytest
  import datetime
  from unittest.mock import patch
  from sagemaker import Session
  from sagemaker.experiments._api_types import TrialSummary
  from sagemaker.experiments.trial import _Trial
  from sagemaker.experiments.trial_component import _TrialComponent
label_desc: Use image node_id 6 for calling a global function with example usage: test_save(sagemaker_session) without return types