class_docstr: A SageMaker lineage artifact representing a model.
  
  Common model specific lineage traversals to discover how the model is connected
  to other entities.
class_docstr_tok: ["A","SageMaker","lineage","artifact","representing","a","model",".","Common","model","specific","lineage","traversals","to","discover","how","the","model","is","connected","to","other","entities","."]
docstr: Get the ARN for the pipeline execution associated with this model (if any).
  
  Returns:
      str: A pipeline execution ARN.
docstr_tok: ["Get","the","ARN","for","the","pipeline","execution","associated","with","this","model","(","if","any",")",".","Returns",":","str",":","A","pipeline","execution","ARN","."]
code: def pipeline_execution_arn(
      self,
      direction: LineageQueryDirectionEnum = LineageQueryDirectionEnum.ASCENDANTS,
  ) -> str:
      """Get the ARN for the pipeline execution associated with this model (if any).
  
      Returns:
          str: A pipeline execution ARN.
      """
      training_job_arns = self.training_job_arns(direction=direction)
      for training_job_arn in training_job_arns:
          tags = self.sagemaker_session.sagemaker_client.list_tags(
              ResourceArn=training_job_arn
          )["Tags"]
          for tag in tags:
              if tag["Key"] == "sagemaker:pipeline-execution-arn":
                  return tag["Value"]
  
      return None
  
imports: from __future__ import absolute_import
  import logging
  import math
  from datetime import datetime
  from typing import Iterator, Union, Any, Optional, List
  from sagemaker.apiutils import _base_types, _utils
  from sagemaker.lineage import _api_types
  from sagemaker.lineage._api_types import ArtifactSource, ArtifactSummary
  from sagemaker.lineage.query import LineageQuery, LineageFilter, LineageSourceEnum, LineageEntityEnum, LineageQueryDirectionEnum
  from sagemaker.lineage._utils import _disassociate, get_resource_name_from_arn
  from sagemaker.lineage.association import Association
  from sagemaker.utils import get_module, format_tags
label_desc: Use image node_id 5 for calling the ModelArtifact obj's underlying member method code with example usage: obj.pipeline_execution_arn(direction) and returns: None, tag