code: def test_decorator_with_nested_exp_run(
      sagemaker_session,
      dummy_container_without_error,
      cpu_instance_type,
  ):
      @remote(
          role=ROLE,
          image_uri=dummy_container_without_error,
          instance_type=cpu_instance_type,
          sagemaker_session=sagemaker_session,
          keep_alive_period_in_seconds=30,
      )
      def train(exp_name, run_name):
          with Run(
              experiment_name=exp_name,
              run_name=run_name,
          ) as run:
              print(f"Experiment name: {run.experiment_name}")
              print(f"Run name: {run.run_name}")
              print(
                  f"Trial component name: {run._trial_component.trial_component_name}"
              )
  
              run.log_parameter("p1", 1.0)
              run.log_parameter("p2", 2)
  
              for i in range(2):
                  run.log_metric("A", i)
              for i in range(2):
                  run.log_metric("B", i)
              for i in range(2):
                  run.log_metric("C", i)
              for i in range(2):
                  time.sleep(0.003)
                  run.log_metric("D", i)
              for i in range(2):
                  time.sleep(0.003)
                  run.log_metric("E", i)
              time.sleep(15)
  
      exp_name = unique_name_from_base("my-test-exp")
      run_name = "my-test-run"
  
      with cleanup_exp_resources(
          exp_names=[exp_name], sagemaker_session=sagemaker_session
      ):
          with pytest.raises(
              RuntimeError,
              match="It is not allowed to use nested 'with' statements on the Run.",
          ):
              with Run(
                  experiment_name=exp_name,
                  run_name=run_name,
                  sagemaker_session=sagemaker_session,
              ):
                  train(
                      exp_name=exp_name,
                      run_name=run_name,
                  )
  
imports: from __future__ import absolute_import
  import time
  from typing import Union
  import pytest
  import os
  import logging
  import random
  import string
  import pandas
  import subprocess
  import shlex
  from sagemaker.experiments.run import Run, load_run
  from sagemaker.remote_function import CheckpointLocation
  from tests.integ.sagemaker.experiments.helpers import cleanup_exp_resources
  from sagemaker.experiments.trial_component import _TrialComponent
  from sagemaker.experiments._api_types import _TrialComponentStatusType
  from sagemaker.remote_function import remote
  from sagemaker.remote_function.spark_config import SparkConfig
  from sagemaker.remote_function.custom_file_filter import CustomFileFilter
  from sagemaker.remote_function.runtime_environment.runtime_environment_manager import RuntimeEnvironmentError
  from sagemaker.remote_function.errors import DeserializationError, SerializationError
  from sagemaker.utils import unique_name_from_base
  from tests.integ.kms_utils import get_or_create_kms_key
  from tests.integ import DATA_DIR
  from tests.integ.s3_utils import assert_s3_files_exist
label_desc: Use image node_id 18 for calling a global function with example usage: test_decorator_with_nested_exp_run(sagemaker_session, dummy_container_without_error, cpu_instance_type) without return types