code: def test_create_model(sagemaker_session, sklearn_version):
      source_dir = "s3://mybucket/source"
  
      sklearn_model = SKLearnModel(
          model_data=source_dir,
          role=ROLE,
          sagemaker_session=sagemaker_session,
          entry_point=SCRIPT_PATH,
          framework_version=sklearn_version,
      )
      image_uri = _get_full_cpu_image_uri(sklearn_version)
      model_values = sklearn_model.prepare_container_def(CPU)
      assert model_values["Image"] == image_uri
  
imports: from __future__ import absolute_import
  import logging
  import json
  import os
  import pytest
  from mock import Mock
  from mock import patch
  from sagemaker.fw_utils import UploadedCode
  from sagemaker.session_settings import SessionSettings
  from sagemaker.sklearn import SKLearn, SKLearnModel, SKLearnPredictor
label_desc: Use image node_id 6 for calling a global function with example usage: test_create_model(sagemaker_session, sklearn_version) without return types