code: def test_deploy_honors_provided_model_name(sagemaker_session):
      model = _create_model(sagemaker_session)
      model._is_compiled_model = True
  
      model_name = "foo"
      model.name = model_name
  
      model.deploy(1, "ml.c4.xlarge")
      assert model_name == model.name
  
imports: from __future__ import absolute_import
  import pytest
  from mock import Mock, patch
  from sagemaker.model import Model
label_desc: Use image node_id 15 for calling a global function with example usage: test_deploy_honors_provided_model_name(sagemaker_session) without return types