code: def test_upsert_schedule_already_exists(
      event_bridge_scheduler_helper,
  ):
      event_bridge_scheduler_helper.event_bridge_scheduler_client.update_schedule.return_value = (
          SCHEDULE_ARN
      )
      schedule_arn = event_bridge_scheduler_helper.upsert_schedule(
          schedule_name=SCHEDULE_NAME,
          pipeline_arn=TARGET_ARN,
          schedule_expression=CRON_SCHEDULE,
          state=STATE,
          start_date=START_DATE,
          role=ROLE,
      )
      assert schedule_arn == SCHEDULE_ARN
      event_bridge_scheduler_helper.event_bridge_scheduler_client.create_schedule.assert_not_called()
  
file_path: sagemaker-python-sdk/tests/unit/sagemaker/feature_store/feature_processor/test_event_bridge_scheduler_helper.py
imports: from __future__ import absolute_import
  from datetime import datetime
  import pytest
  from botocore.exceptions import ClientError
  from sagemaker.feature_store.feature_processor._event_bridge_scheduler_helper import EventBridgeSchedulerHelper
  from mock import Mock
  from sagemaker.session import Session
label_desc: Use image node_id 3 for calling a global function with example usage: test_upsert_schedule_already_exists(event_bridge_scheduler_helper) without return types