code: def trial_component_obj(sagemaker_session):
      trial_component_obj = trial_component._TrialComponent.create(
          trial_component_name=name(),
          sagemaker_session=sagemaker_session,
          tags=TAGS,
      )
      yield trial_component_obj
      time.sleep(0.5)
      _delete_associations(
          trial_component_obj.trial_component_arn, sagemaker_session
      )
      retry_with_backoff(trial_component_obj.delete)
  
imports: from __future__ import absolute_import
  import glob
  import logging
  import os
  import shutil
  import tempfile
  import time
  import uuid
  import boto3
  import pytest
  from sagemaker.experiments import Run
  from tests.integ import DATA_DIR
  from sagemaker.experiments import trial_component, trial, experiment
  from sagemaker.utils import retry_with_backoff, unique_name_from_base
  from tests.integ.sagemaker.experiments.helpers import name, names
label_desc: Use image node_id 2 for calling a global function with example usage: trial_component_obj(sagemaker_session) without return types