code: def test_create_model(sagemaker_session):
      returned_name = sagemaker_session.create_model(
          name=MODEL_NAME,
          role=ROLE,
          container_defs=FULL_CONTAINER_DEF,
          vpc_config=VPC_CONFIG,
      )
  
      assert returned_name == MODEL_NAME
      sagemaker_session.sagemaker_client.create_model.assert_called_once_with(
          ModelName=MODEL_NAME,
          PrimaryContainer=FULL_CONTAINER_DEF,
          ExecutionRoleArn=EXPANDED_ROLE,
          VpcConfig=VPC_CONFIG,
      )
  
file_path: sagemaker-python-sdk/tests/unit/test_create_deploy_entities.py
imports: from __future__ import absolute_import
  import pytest
  from mock import MagicMock, Mock
  import sagemaker
label_desc: Use image node_id 2 for calling a global function with example usage: test_create_model(sagemaker_session) without return types