code: def test_decorator_load_run_inside_remote_function(
      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():
          with load_run() as run:
              run.log_parameters({"p3": 3.0, "p4": 4})
              run.log_metric("test-job-load-log-metric", 0.1)
  
      exp_name = unique_name_from_base("my-test-exp")
      run_name = "my-test-run"
      tc_name = Run._generate_trial_component_name(
          experiment_name=exp_name, run_name=run_name
      )
  
      with cleanup_exp_resources(
          exp_names=[exp_name], sagemaker_session=sagemaker_session
      ):
          with Run(
              experiment_name=exp_name,
              run_name=run_name,
              sagemaker_session=sagemaker_session,
          ):
              train()
  
          tc = _TrialComponent.load(
              trial_component_name=tc_name,
              sagemaker_session=sagemaker_session,
          )
  
          assert tc.parameters["p3"] == 3.0
          assert tc.parameters["p4"] == 4.0
          assert len(tc.metrics) > 0
          for metric_summary in tc.metrics:
              if (
                  metric_summary.metric_name
                  != "test-job-load-log-metric"
              ):
                  continue
              assert metric_summary.last == 0.1
              assert metric_summary.max == 0.1
              assert metric_summary.min == 0.1
  
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 17 for calling a global function with example usage: test_decorator_load_run_inside_remote_function(sagemaker_session, dummy_container_without_error, cpu_instance_type) without return types