code: def test_deserializer_fails(mock_deserializer):
      delayed_returns = [
          _DelayedReturn(
              uri=["s3://my-bucket/", "sub-folder-1/"],
              reference_path=(("__getitem__", 0),),
          ),
          _DelayedReturn(uri=["s3://my-bucket/", "sub-folder-2/"]),
      ]
  
      mock_deserializer.side_effect = Exception("Something went wrong")
      with pytest.raises(Exception, match="Something went wrong"):
          _DelayedReturnResolver(
              delayed_returns,
              "1234",
              _ParameterResolver(Context()),
              _ExecutionVariableResolver(Context()),
              sagemaker_session=None,
              s3_base_uri=f"s3://my-bucket/{PIPELINE_NAME}",
          )
  
file_path: sagemaker-python-sdk/tests/unit/sagemaker/remote_function/core/test_pipeline_variables.py
imports: from __future__ import absolute_import
  import pytest
  from mock import patch, Mock
  from sagemaker.remote_function.core.pipeline_variables import _ParameterInteger, _ParameterFloat, _ParameterString, _ParameterBoolean, _ExecutionVariable, _Properties, _DelayedReturn, Context, _ParameterResolver, _ExecutionVariableResolver, _DelayedReturnResolver, resolve_pipeline_variables, convert_pipeline_variables_to_pickleable, _S3BaseUriIdentifier
  from sagemaker.workflow.parameters import ParameterInteger, ParameterFloat, ParameterString, ParameterBoolean
  from sagemaker.workflow.function_step import DelayedReturn
  from sagemaker.workflow.properties import Properties
label_desc: Use image node_id 2 for calling a global function with example usage: test_deserializer_fails(mock_deserializer) without return types