code: def test_tuning_kmeans_with_instance_configs(
      sagemaker_session,
      kmeans_train_set,
      kmeans_estimator,
      hyperparameter_ranges,
      cpu_instance_type,
  ):
      job_name = unique_name_from_base("tst-fit")
      _tune_and_deploy(
          kmeans_estimator,
          kmeans_train_set,
          sagemaker_session,
          cpu_instance_type,
          hyperparameter_ranges=hyperparameter_ranges,
          job_name=job_name,
          instance_configs=[
              InstanceConfig(
                  instance_count=1,
                  instance_type="ml.m4.2xlarge",
                  volume_size=30,
              ),
              InstanceConfig(
                  instance_count=1,
                  instance_type="ml.m4.xlarge",
                  volume_size=30,
              ),
          ],
      )
  
imports: from __future__ import absolute_import
  import json
  import os
  import time
  import numpy
  import pytest
  from botocore.exceptions import ClientError
  import tests.integ
  from sagemaker import KMeans, LDA, RandomCutForest, image_uris
  from sagemaker.amazon.common import read_records
  from sagemaker.chainer import Chainer
  from sagemaker.deserializers import JSONDeserializer
  from sagemaker.estimator import Estimator
  from sagemaker.mxnet.estimator import MXNet
  from sagemaker.pytorch import PyTorch
  from sagemaker.serializers import SimpleBaseSerializer
  from sagemaker.tensorflow import TensorFlow
  from sagemaker.tuner import IntegerParameter, ContinuousParameter, CategoricalParameter, HyperparameterTuner, InstanceConfig, WarmStartConfig, WarmStartTypes, create_transfer_learning_tuner, create_identical_dataset_and_algorithm_tuner
  from sagemaker.utils import unique_name_from_base
  from tests.integ import datasets, vpc_test_utils, DATA_DIR, TUNING_DEFAULT_TIMEOUT_MINUTES
  from tests.integ.record_set import prepare_record_set_from_local_files
  from tests.integ.timeout import timeout, timeout_and_delete_endpoint_by_name
label_desc: Use image node_id 9 for calling a global function with example usage: test_tuning_kmeans_with_instance_configs(sagemaker_session, kmeans_train_set, kmeans_estimator, hyperparameter_ranges, cpu_instance_type) without return types