code: def test_step_decorator_auto_capture_dependencies_error():
      with pytest.raises(
          ValueError,
          match=r"Auto Capture of dependencies is not supported for pipeline steps.",
      ):
  
          @step(dependencies="auto_capture")
          def sum(a, b):
              return a + b
  
imports: from __future__ import absolute_import
  from copy import deepcopy
  import pytest
  import re
  from mock import patch, Mock, ANY
  from typing import List, Tuple
  from mock.mock import MagicMock
  from sagemaker.workflow.parameters import ParameterInteger
  from sagemaker.workflow.execution_variables import ExecutionVariables
  from sagemaker.workflow.functions import Join
  from sagemaker.workflow.step_outputs import get_step
  from sagemaker.workflow.function_step import DelayedReturn, step
  from sagemaker.workflow.retry import StepRetryPolicy, StepExceptionTypeEnum
  from sagemaker.workflow.pipeline_context import _PipelineConfig
  from sagemaker.workflow.pipeline_definition_config import PipelineDefinitionConfig
label_desc: Use image node_id 4 for calling a global function with example usage: test_step_decorator_auto_capture_dependencies_error() and returns: unknown