code: def test_update_approval_model_package(sagemaker_session):
      model_group_name = unique_name_from_base("test-model-group")
  
      sagemaker_session.sagemaker_client.create_model_package_group(
          ModelPackageGroupName=model_group_name
      )
  
      xgb_model_data_s3 = sagemaker_session.upload_data(
          path=os.path.join(_XGBOOST_PATH, "xgb_model.tar.gz"),
          key_prefix="integ-test-data/xgboost/model",
      )
      model = XGBoostModel(
          model_data=xgb_model_data_s3,
          framework_version="1.3-1",
          sagemaker_session=sagemaker_session,
      )
  
      model_package = model.register(
          content_types=["text/csv"],
          response_types=["text/csv"],
          inference_instances=["ml.m5.large"],
          transform_instances=["ml.m5.large"],
          model_package_group_name=model_group_name,
      )
  
      model_package.update_approval_status(
          approval_status=ModelApprovalStatusEnum.APPROVED,
          approval_description="dummy",
      )
  
      desc_model_package = (
          sagemaker_session.sagemaker_client.describe_model_package(
              ModelPackageName=model_package.model_package_arn
          )
      )
      assert (
          desc_model_package["ModelApprovalStatus"]
          == ModelApprovalStatusEnum.APPROVED
      )
      assert desc_model_package["ApprovalDescription"] == "dummy"
  
      sagemaker_session.sagemaker_client.delete_model_package(
          ModelPackageName=model_package.model_package_arn
      )
      sagemaker_session.sagemaker_client.delete_model_package_group(
          ModelPackageGroupName=model_group_name
      )
  
file_path: sagemaker-python-sdk/tests/integ/test_model_package.py
imports: from __future__ import absolute_import
  import os
  from sagemaker.model_card.schema_constraints import ModelApprovalStatusEnum
  from sagemaker.utils import unique_name_from_base
  from tests.integ import DATA_DIR
  from sagemaker.xgboost import XGBoostModel
  from sagemaker import image_uris
label_desc: Use image node_id 1 for calling a global function with example usage: test_update_approval_model_package(sagemaker_session) without return types