code: def test_decorator_pre_execution_script(
      sagemaker_session,
      dummy_container_without_error,
      cpu_instance_type,
  ):
      pre_execution_script_path = os.path.join(
          DATA_DIR, "remote_function", "pre_exec_commands"
      )
  
      @remote(
          role=ROLE,
          image_uri=dummy_container_without_error,
          pre_execution_script=pre_execution_script_path,
          instance_type=cpu_instance_type,
          sagemaker_session=sagemaker_session,
          keep_alive_period_in_seconds=60,
      )
      def get_file_content(file_names):
          joined_content = ""
          for file_name in file_names:
              if os.path.exists(file_name):
                  with open(f"{file_name}", "r") as f:
                      joined_content += f.read()
          return joined_content
  
      assert (
          get_file_content(
              ["test_file_1", "test_file_2", "test_file_3"]
          )
          == "test-content-1" + "\n" + "test-content-3" + "\n"
      )
  
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 21 for calling a global function with example usage: test_decorator_pre_execution_script(sagemaker_session, dummy_container_without_error, cpu_instance_type) and returns: joined_content