code: def run_obj(sagemaker_session):
      run = Run(
          experiment_name=unique_name_from_base(EXP_NAME_BASE_IN_LOCAL),
          run_name=RUN_NAME_IN_LOCAL,
          sagemaker_session=sagemaker_session,
      )
      try:
          yield run
          time.sleep(0.5)
      finally:
          exp = experiment.Experiment.load(
              experiment_name=run.experiment_name,
              sagemaker_session=sagemaker_session,
          )
          exp._delete_all(action="--force")
  
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 1 for calling a global function with example usage: run_obj(sagemaker_session) without return types