code: def test_model_package_auto_approve_on_deploy(
      update_approval_status, sagemaker_session
  ):
      tags = [{"Key": "foo", "Value": "bar"}]
      model_package = ModelPackage(
          role="role",
          model_package_arn=MODEL_PACKAGE_VERSIONED_ARN,
          sagemaker_session=sagemaker_session,
      )
      model_package.deploy(
          tags=tags,
          instance_type="ml.p2.xlarge",
          initial_instance_count=1,
      )
  
      assert (
          update_approval_status.call_args_list[0][1]["approval_status"]
          == ModelApprovalStatusEnum.APPROVED
      )
  
imports: from __future__ import absolute_import
  import copy
  import pytest
  from mock import Mock, patch
  import sagemaker
  from sagemaker.model import ModelPackage
  from sagemaker.model_card.schema_constraints import ModelApprovalStatusEnum
label_desc: Use image node_id 13 for calling a global function with example usage: test_model_package_auto_approve_on_deploy(update_approval_status, sagemaker_session) without return types