code: def test_decorator_with_spark_job(
      sagemaker_session, cpu_instance_type
  ):
      @remote(
          role=ROLE,
          instance_type=cpu_instance_type,
          sagemaker_session=sagemaker_session,
          keep_alive_period_in_seconds=60,
          spark_config=SparkConfig(
              configuration=[
                  {
                      "Classification": "spark-defaults",
                      "Properties": {
                          "spark.app.name",
                          "remote-spark-test",
                      },
                  }
              ]
          ),
      )
      def test_spark_transform():
          from pyspark.sql import SparkSession
  
          spark = SparkSession.builder.getOrCreate()
  
          assert spark.conf.get(spark.app.name) == "remote-spark-test"
  
      test_spark_transform()
  
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 28 for calling a global function with example usage: test_decorator_with_spark_job(sagemaker_session, cpu_instance_type) without return types