code: def test_create_sagemaker_model_include_environment_variable(
      sagemaker_session,
  ):
      model_name = "my-model"
      model_package_name = "my-model-package"
      env_key = "env_key"
      env_value = "env_value"
      environment = {env_key: env_value}
  
      model_package = ModelPackage(
          role="role",
          name=model_name,
          model_package_arn=model_package_name,
          env=environment,
          sagemaker_session=sagemaker_session,
      )
  
      model_package._create_sagemaker_model()
  
      sagemaker_session.create_model.assert_called_with(
          model_name,
          "role",
          {
              "ModelPackageName": model_package_name,
              "Environment": environment,
          },
          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 6 for calling a global function with example usage: test_create_sagemaker_model_include_environment_variable(sagemaker_session) without return types