code: def test_no_pipeline_execution_arn(sagemaker_session):
      trial_component_arn = "arn:aws:sagemaker:us-west-2:123456789012:trial_component/lineage-unit-3b05f017-0d87-4c37"
      training_job_arn = "arn:aws:sagemaker:us-west-2:123456789012:training-job/pipelines-bs6gaeln463r-abalonetrain"
      context = lineage_trial_component.LineageTrialComponent(
          sagemaker_session,
          trial_component_name="foo",
          trial_component_arn=trial_component_arn,
          source={
              "SourceArn": training_job_arn,
              "SourceType": "SageMakerTrainingJob",
          },
      )
      obj = {
          "TrialComponentName": "pipelines-bs6gaeln463r-AbaloneTrain-A0QiDGuY6z-aws-training-job",
          "TrialComponentArn": trial_component_arn,
          "DisplayName": "pipelines-bs6gaeln463r-AbaloneTrain-A0QiDGuY6z-aws-training-job",
          "Source": {
              "SourceArn": training_job_arn,
              "SourceType": "SageMakerTrainingJob",
          },
      }
      sagemaker_session.sagemaker_client.describe_trial_component.return_value = (
          obj
      )
  
      sagemaker_session.sagemaker_client.list_tags.return_value = {
          "Tags": [
              {"Key": "abcd", "Value": "efg"},
          ],
      }
      expected_calls = [
          unittest.mock.call(ResourceArn=training_job_arn),
      ]
      pipeline_execution_arn_result = context.pipeline_execution_arn()
      expected_result = None
      assert pipeline_execution_arn_result == expected_result
      assert (
          expected_calls
          == sagemaker_session.sagemaker_client.list_tags.mock_calls
      )
  
file_path: sagemaker-python-sdk/tests/unit/sagemaker/lineage/test_lineage_trial_component.py
imports: from __future__ import absolute_import
  import unittest.mock
  import pytest
  from sagemaker.lineage import artifact, lineage_trial_component
label_desc: Use image node_id 5 for calling a global function with example usage: test_no_pipeline_execution_arn(sagemaker_session) without return types