def METHOD_NAME(trials, sagemaker_session):
    trial_component_obj = trial_component._TrialComponent.create(
        trial_component_name=name(), sagemaker_session=sagemaker_session
    )
    for trial_obj in trials:
        sagemaker_session.sagemaker_client.associate_trial_component(
            TrialName=trial_obj.trial_name,
            TrialComponentName=trial_component_obj.trial_component_name,
        )
    yield trial_component_obj
    time.sleep(0.5)
    trial_component_obj.delete(force_disassociate=True)