code: def test_create_schedule_lineage():
      lineage_handler = FeatureProcessorLineageHandler(
          pipeline_name=PIPELINE_NAME,
          pipeline_arn=PIPELINE_ARN,
          pipeline=PIPELINE,
          sagemaker_session=SAGEMAKER_SESSION_MOCK,
      )
      with patch.object(
          PipelineLineageEntityHandler,
          "load_pipeline_context",
          return_value=PIPELINE_CONTEXT,
      ) as load_pipeline_context_method, patch.object(
          PipelineVersionLineageEntityHandler,
          "load_pipeline_version_context",
          return_value=PIPELINE_VERSION_CONTEXT,
      ) as load_pipeline_version_context_method, patch.object(
          S3LineageEntityHandler,
          "retrieve_pipeline_schedule_artifact",
          return_value=SCHEDULE_ARTIFACT_RESULT,
      ) as retrieve_pipeline_schedule_artifact_method, patch.object(
          LineageAssociationHandler,
          "add_upstream_schedule_associations",
      ) as add_upstream_schedule_associations_method, patch.object(
          Artifact,
          "set_tags",
          return_value={
              "Tags": [
                  dict(Key="key_1", Value="value_1"),
                  dict(Key="key_2", Value="value_2"),
              ]
          },
      ) as artifact_set_tags:
          lineage_handler.create_schedule_lineage(
              pipeline_name=PIPELINE_NAME,
              schedule_arn=SCHEDULE_ARN,
              schedule_expression=SCHEDULE_EXPRESSION,
              state=STATE,
              start_date=START_DATE,
              tags=TAGS,
          )
  
          load_pipeline_context_method.assert_called_once_with(
              pipeline_name=PIPELINE_NAME,
              creation_time=PIPELINE["CreationTime"].strftime("%s"),
              sagemaker_session=SAGEMAKER_SESSION_MOCK,
          )
  
          load_pipeline_version_context_method.assert_called_once_with(
              pipeline_name=PIPELINE_NAME,
              last_update_time=PIPELINE_CONTEXT.properties[
                  "LastUpdateTime"
              ],
              sagemaker_session=SAGEMAKER_SESSION_MOCK,
          )
  
          retrieve_pipeline_schedule_artifact_method.assert_called_once_with(
              pipeline_schedule=PipelineSchedule(
                  schedule_name=PIPELINE_NAME,
                  schedule_arn=SCHEDULE_ARN,
                  schedule_expression=SCHEDULE_EXPRESSION,
                  pipeline_name=PIPELINE_NAME,
                  state=STATE,
                  start_date=START_DATE.strftime("%s"),
              ),
              sagemaker_session=SAGEMAKER_SESSION_MOCK,
          )
  
          add_upstream_schedule_associations_method.assert_called_once_with(
              schedule_artifact=SCHEDULE_ARTIFACT_RESULT,
              pipeline_version_context_arn=PIPELINE_VERSION_CONTEXT.context_arn,
              sagemaker_session=SAGEMAKER_SESSION_MOCK,
          )
  
          artifact_set_tags.assert_called_once_with(TAGS)
  
imports: from __future__ import absolute_import
  import copy
  import datetime
  from typing import Iterator, List
  import pytest
  from mock import call, patch, Mock
  from sagemaker import Session
  from sagemaker.feature_store.feature_processor._event_bridge_scheduler_helper import EventBridgeSchedulerHelper
  from sagemaker.feature_store.feature_processor._event_bridge_rule_helper import EventBridgeRuleHelper
  from sagemaker.feature_store.feature_processor.lineage.constants import TRANSFORMATION_CODE_STATUS_INACTIVE
  from sagemaker.lineage.context import Context
  from sagemaker.lineage.artifact import Artifact
  from test_constants import FEATURE_GROUP_DATA_SOURCE, FEATURE_GROUP_INPUT, LAST_UPDATE_TIME, PIPELINE, PIPELINE_ARN, PIPELINE_CONTEXT, PIPELINE_NAME, PIPELINE_VERSION_CONTEXT, RAW_DATA_INPUT, RAW_DATA_INPUT_ARTIFACTS, RESOURCE_NOT_FOUND_EXCEPTION, SAGEMAKER_SESSION_MOCK, SCHEDULE_ARTIFACT_RESULT, PIPELINE_TRIGGER_ARTIFACT, TRANSFORMATION_CODE_ARTIFACT_1, TRANSFORMATION_CODE_ARTIFACT_2, TRANSFORMATION_CODE_INPUT_1, TRANSFORMATION_CODE_INPUT_2, ARTIFACT_SUMMARY, ARTIFACT_RESULT
  from sagemaker.feature_store.feature_processor.lineage._feature_group_lineage_entity_handler import FeatureGroupLineageEntityHandler
  from sagemaker.feature_store.feature_processor.lineage._feature_processor_lineage import FeatureProcessorLineageHandler
  from sagemaker.feature_store.feature_processor.lineage._lineage_association_handler import LineageAssociationHandler
  from sagemaker.feature_store.feature_processor.lineage._pipeline_lineage_entity_handler import PipelineLineageEntityHandler
  from sagemaker.feature_store.feature_processor.lineage._pipeline_schedule import PipelineSchedule
  from sagemaker.feature_store.feature_processor.lineage._pipeline_trigger import PipelineTrigger
  from sagemaker.feature_store.feature_processor.lineage._pipeline_version_lineage_entity_handler import PipelineVersionLineageEntityHandler
  from sagemaker.feature_store.feature_processor.lineage._s3_lineage_entity_handler import S3LineageEntityHandler
  from sagemaker.lineage._api_types import AssociationSummary
label_desc: Use image node_id 17 for calling a global function with example usage: test_create_schedule_lineage() without return types