code: def test_generate_pipeline_arn_and_name(
      event_bridge_rule_helper, pipeline_uri, expected_result
  ):
      event_bridge_rule_helper.sagemaker_session.sagemaker_client.describe_pipeline = Mock(
          return_value=dict(PipelineArn="test-pipeline-arn")
      )
      assert (
          event_bridge_rule_helper._generate_pipeline_arn_and_name(
              pipeline_uri
          )
          == expected_result
      )
  
imports: from __future__ import absolute_import
  from mock import Mock
  from sagemaker.session import Session
  from sagemaker.feature_store.feature_processor._event_bridge_rule_helper import EventBridgeRuleHelper
  from botocore.exceptions import ClientError
  from sagemaker.feature_store.feature_processor._feature_processor_pipeline_events import FeatureProcessorPipelineEvents, FeatureProcessorPipelineExecutionStatus
  import pytest
label_desc: Use image node_id 17 for calling a global function with example usage: test_generate_pipeline_arn_and_name(event_bridge_rule_helper, pipeline_uri, expected_result) without return types