code: def test_validete_fg_lineage_resources_rnf():
      with patch.object(
          SAGEMAKER_SESSION_MOCK,
          "describe_feature_group",
          return_value=FEATURE_GROUP,
      ):
          with patch.object(
              Context,
              "load",
              side_effect=ClientError(
                  error_response={
                      "Error": {"Code": "ResourceNotFound"}
                  },
                  operation_name="describe_context",
              ),
          ):
              feature_group_name = "some_fg"
              feature_group_creation_time = FEATURE_GROUP[
                  "CreationTime"
              ].strftime("%s")
              context_name = (
                  f"{feature_group_name}-{feature_group_creation_time}"
              )
              with pytest.raises(
                  ValueError,
                  match=f"Lineage resource {context_name} has not yet been created for feature group"
                  f" {feature_group_name} or has already been deleted. Please try again later.",
              ):
                  _validate_fg_lineage_resources(
                      feature_group_name="some_fg",
                      sagemaker_session=SAGEMAKER_SESSION_MOCK,
                  )
  
imports: from __future__ import absolute_import
  from datetime import datetime
  from typing import Callable
  import pytest
  import json
  from botocore.exceptions import ClientError
  from mock import Mock, patch, call
  from sagemaker.feature_store.feature_processor.feature_scheduler import FeatureProcessorLineageHandler
  from sagemaker.feature_store.feature_processor import FeatureProcessorPipelineEvents, FeatureProcessorPipelineExecutionStatus
  from sagemaker.lineage.context import Context
  from sagemaker.remote_function.spark_config import SparkConfig
  from sagemaker import Session
  from sagemaker.feature_store.feature_processor._enums import FeatureProcessorMode
  from sagemaker.feature_store.feature_processor._constants import FEATURE_PROCESSOR_TAG_KEY, FEATURE_PROCESSOR_TAG_VALUE, EXECUTION_TIME_PIPELINE_PARAMETER_FORMAT, PIPELINE_NAME_MAXIMUM_LENGTH
  from sagemaker.feature_store.feature_processor.feature_scheduler import schedule, to_pipeline, execute, delete_schedule, describe, list_pipelines, put_trigger, enable_trigger, disable_trigger, delete_trigger, _validate_fg_lineage_resources, _validate_pipeline_lineage_resources
  from sagemaker.remote_function.job import _JobSettings, SPARK_APP_SCRIPT_PATH, RUNTIME_SCRIPTS_CHANNEL_NAME, REMOTE_FUNCTION_WORKSPACE, ENTRYPOINT_SCRIPT_NAME, SPARK_CONF_CHANNEL_NAME
  from sagemaker.workflow.parameters import Parameter, ParameterTypeEnum
  from sagemaker.workflow.retry import StepRetryPolicy, StepExceptionTypeEnum, SageMakerJobStepRetryPolicy, SageMakerJobExceptionTypeEnum
  import test_data_helpers
label_desc: Use image node_id 22 for calling a global function with example usage: test_validete_fg_lineage_resources_rnf() without return types