class_docstr: An Amazon SageMaker model package approval action, which is part of a SageMaker lineage.
docstr: Get model package from model package approval action.
  
  Returns:
      Model package.
docstr_tok: ["Get","model","package","from","model","package","approval","action",".","Returns",":","Model","package","."]
code: def model_package(self):
      """Get model package from model package approval action.
  
      Returns:
          Model package.
      """
      source_uri = self.source.source_uri
      if source_uri is None:
          return None
  
      model_package_name = source_uri.split("/")[1]
      return self.sagemaker_session.sagemaker_client.describe_model_package(
          ModelPackageName=model_package_name
      )
  
imports: from __future__ import absolute_import
  from typing import Optional, Iterator, List
  from datetime import datetime
  from sagemaker.session import Session
  from sagemaker.apiutils import _base_types
  from sagemaker.lineage import _api_types, _utils
  from sagemaker.lineage._api_types import ActionSource, ActionSummary
  from sagemaker.lineage.artifact import Artifact
  from sagemaker.utils import format_tags
  from sagemaker.lineage.query import LineageQuery, LineageFilter, LineageSourceEnum, LineageEntityEnum, LineageQueryDirectionEnum
label_desc: Use image node_id 2 for calling the ModelPackageApprovalAction obj's underlying member method code with example usage: obj.model_package() and returns: self, None