code: def test_delete(sagemaker_session):
      client = sagemaker_session.sagemaker_client
      obj = _Trial(sagemaker_session, trial_name="foo")
      client.delete_trial.return_value = {}
      obj.delete()
      client.delete_trial.assert_called_with(TrialName="foo")
  
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 5 for calling a global function with example usage: test_delete(sagemaker_session) without return types