code: def test_create_sagemaker_model_generates_model_name_each_time(
      name_from_base, sagemaker_session
  ):
      model_package_name = "my-model-package"
  
      model_package = ModelPackage(
          role="role",
          model_package_arn=model_package_name,
          sagemaker_session=sagemaker_session,
      )
  
      model_package._create_sagemaker_model()
      model_package._create_sagemaker_model()
  
      name_from_base.assert_called_with(model_package_name)
      assert 2 == name_from_base.call_count
  
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 10 for calling a global function with example usage: test_create_sagemaker_model_generates_model_name_each_time(name_from_base, sagemaker_session) without return types