code: def test_create_model_expand_primary_container(sagemaker_session):
      sagemaker_session.create_model(
          name=MODEL_NAME, role=ROLE, container_defs=IMAGE
      )
  
      (
          _1,
          _2,
          create_model_kwargs,
      ) = sagemaker_session.sagemaker_client.create_model.mock_calls[0]
      assert create_model_kwargs["PrimaryContainer"] == {
          "Environment": {},
          "Image": IMAGE,
      }
  
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 3 for calling a global function with example usage: test_create_model_expand_primary_container(sagemaker_session) without return types