code: def test_delete_with_force_disassociate(sagemaker_session):
      client = sagemaker_session.sagemaker_client
      obj = _TrialComponent(
          sagemaker_session,
          trial_component_name="foo",
          display_name="bar",
      )
      client.delete_trial_component.return_value = {}
  
      client.list_trials.side_effect = [
          {
              "TrialSummaries": [
                  {"TrialName": "trial-1"},
                  {"TrialName": "trial-2"},
              ],
              "NextToken": "a",
          },
          {
              "TrialSummaries": [
                  {"TrialName": "trial-3"},
                  {"TrialName": "trial-4"},
              ]
          },
      ]
  
      obj.delete(force_disassociate=True)
      expected_calls = [
          unittest.mock.call(
              TrialName="trial-1", TrialComponentName="foo"
          ),
          unittest.mock.call(
              TrialName="trial-2", TrialComponentName="foo"
          ),
          unittest.mock.call(
              TrialName="trial-3", TrialComponentName="foo"
          ),
          unittest.mock.call(
              TrialName="trial-4", TrialComponentName="foo"
          ),
      ]
      assert (
          expected_calls
          == client.disassociate_trial_component.mock_calls
      )
      client.delete_trial_component.assert_called_with(
          TrialComponentName="foo"
      )
  
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 6 for calling a global function with example usage: test_delete_with_force_disassociate(sagemaker_session) without return types