class_docstr: Creates a dataframe containing the lineage assoociations of a SageMaker object.
docstr: Given an endpoint arn retrieve the arn of the lineage entity.
  
  Args:
      endpoint_arn (str): The arn of an endpoint
  
  Returns:
      str: The arn of the lineage entity that represents the model package.
docstr_tok: ["Given","an","endpoint","arn","retrieve","the","arn","of","the","lineage","entity",".","Args",":","endpoint_arn","(","str",")",":","The","arn","of","an","endpoint","Returns",":","str",":","The","arn","of","the","lineage","entity","that","represents","the","model","package","."]
code: def _get_start_arn_from_endpoint_arn(self, endpoint_arn: str) -> str:
      """Given an endpoint arn retrieve the arn of the lineage entity.
  
      Args:
          endpoint_arn (str): The arn of an endpoint
  
      Returns:
          str: The arn of the lineage entity that represents the model package.
      """
      response: Any = self._session.sagemaker_client.list_contexts(
          SourceUri=endpoint_arn
      )
      contexts: Any = response["ContextSummaries"]
      context_arn: str = None
      if contexts:
          context_arn = contexts[0]["ContextArn"]
      else:
          logging.debug("No contexts found for %s.", endpoint_arn)
      return context_arn
  
imports: from __future__ import absolute_import
  import logging
  from typing import Optional, Any, Iterator
  import pandas
  from pandas import DataFrame
  from sagemaker.lineage._api_types import AssociationSummary
  from sagemaker.lineage.association import Association
label_desc: Use image node_id 8 for calling the LineageTableVisualizer obj's underlying member method code with example usage: obj._get_start_arn_from_endpoint_arn(endpoint_arn) and returns: context_arn