code: def trial_obj(sagemaker_session, experiment_obj):
      trial_obj = trial._Trial.create(
          trial_name=name(),
          experiment_name=experiment_obj.experiment_name,
          tags=TAGS,
          sagemaker_session=sagemaker_session,
      )
      yield trial_obj
      time.sleep(0.5)
      trial_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 4 for calling a global function with example usage: trial_obj(sagemaker_session, experiment_obj) without return types