code: def test_decorator_auto_capture(
      sagemaker_session, auto_capture_test_container
  ):
      """
      This test runs a docker container. The Container invocation will execute a python script
      with remote function to test auto_capture scenario. The test requires conda to be
      installed on the client side which is not available in the code build image. Hence we need
      to run the test in another docker container with conda installed.
  
      Any assertion is not needed because if remote function execution fails, docker run comand
      will throw an error thus failing this test.
      """
      creds = sagemaker_session.boto_session.get_credentials()
      region = sagemaker_session.boto_session.region_name
      env = {
          "AWS_ACCESS_KEY_ID": str(creds.access_key),
          "AWS_SECRET_ACCESS_KEY": str(creds.secret_key),
          "AWS_SESSION_TOKEN": str(creds.token),
      }
      cmd = (
          f"docker run -e AWS_ACCESS_KEY_ID={env['AWS_ACCESS_KEY_ID']} "
          f"-e AWS_SECRET_ACCESS_KEY={env['AWS_SECRET_ACCESS_KEY']} "
          f"-e AWS_SESSION_TOKEN={env['AWS_SESSION_TOKEN']} "
          f"-e AWS_DEFAULT_REGION={region} "
          f"--rm {auto_capture_test_container}"
      )
      subprocess.check_output(
          shlex.split(cmd), stderr=subprocess.STDOUT
      ).decode("utf-8")
  
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 29 for calling a global function with example usage: test_decorator_auto_capture(sagemaker_session, auto_capture_test_container) without return types