code: def test_decorator_function_defined_in_with_run(
      sagemaker_session,
      dummy_container_without_error,
      cpu_instance_type,
  ):
      exp_name = unique_name_from_base("my-test-exp")
      run_name = "my-test-run"
      with Run(
          experiment_name=exp_name,
          run_name=run_name,
          sagemaker_session=sagemaker_session,
      ) as run:
  
          @remote(
              role=ROLE,
              image_uri=dummy_container_without_error,
              instance_type=cpu_instance_type,
              sagemaker_session=sagemaker_session,
          )
          def train(metric_1, value_1, metric_2, value_2):
              run.log_parameter(metric_1, value_1)
              run.log_parameter(metric_2, value_2)
  
          with pytest.raises(SerializationError) as e:
              train("p1", 1.0, "p2", 0.5)
              assert isinstance(e.__cause__, NotImplementedError)
  
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 19 for calling a global function with example usage: test_decorator_function_defined_in_with_run(sagemaker_session, dummy_container_without_error, cpu_instance_type) without return types