code: def test_create_sagemaker_model_uses_model_package_arn(
      name_from_base, sagemaker_session, model_package_arn
  ):
      model_name = "my-model"
  
      model_package = ModelPackage(
          role="role",
          name=model_name,
          model_package_arn=model_package_arn,
          sagemaker_session=sagemaker_session,
      )
  
      model_package._create_sagemaker_model()
  
      assert model_name == model_package.name
      name_from_base.assert_not_called()
  
      sagemaker_session.create_model.assert_called_with(
          model_name,
          "role",
          {"ModelPackageName": model_package_arn},
          vpc_config=None,
          enable_network_isolation=False,
          tags=None,
      )
  
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 5 for calling a global function with example usage: test_create_sagemaker_model_uses_model_package_arn(name_from_base, sagemaker_session, model_package_arn) without return types