code: def _wait_for_trial_component_disassociation(sagemaker_client, tc):
      # Sometimes it can take a bit of waiting for the trial component to be disassociated
      for _ in range(5):
          # Check that the trial component has been disassociated from the trial
          trials = sagemaker_client.list_trials(TrialComponentName=tc)[
              "TrialSummaries"
          ]
          if len(trials) == 0:
              break
  
          time.sleep(1)
  
file_path: sagemaker-python-sdk/tests/integ/test_experiments_analytics.py
imports: from __future__ import absolute_import
  import time
  import uuid
  from contextlib import contextmanager
  import pytest
  from sagemaker.analytics import ExperimentAnalytics
label_desc: Use image node_id 10 for calling a global function with example usage: _wait_for_trial_component_disassociation(sagemaker_client, tc) without return types