code: def test_deploy_deployment_recommendation_id_with_model(
      created_base_model, sagemaker_session
  ):
      with timeout(minutes=20):
          try:
              deployment_recommendation = (
                  poll_for_deployment_recommendation(
                      created_base_model, sagemaker_session
                  )
              )
  
              assert deployment_recommendation is not None
  
              real_time_recommendations = deployment_recommendation.get(
                  "RealTimeInferenceRecommendations"
              )
              recommendation_id = real_time_recommendations[0].get(
                  "RecommendationId"
              )
  
              endpoint_name = unique_name_from_base(
                  "test-rec-id-deployment-default-sklearn"
              )
              created_base_model.predictor_cls = SKLearnPredictor
              predictor = created_base_model.deploy(
                  inference_recommendation_id=recommendation_id,
                  initial_instance_count=1,
                  endpoint_name=endpoint_name,
              )
  
              payload = pd.read_csv(IR_SKLEARN_DATA, header=None)
  
              inference = predictor.predict(payload)
              assert inference is not None
              assert 26 == len(inference)
          finally:
              predictor.delete_model()
              predictor.delete_endpoint()
  
imports: from __future__ import absolute_import
  import os
  import time
  import pytest
  from botocore.exceptions import ClientError
  from sagemaker import image_uris
  from sagemaker.model import Model
  from sagemaker.sklearn.model import SKLearnModel, SKLearnPredictor
  from sagemaker.utils import unique_name_from_base
  from tests.integ import DATA_DIR
  from tests.integ.timeout import timeout
  import pandas
  from sagemaker.inference_recommender.inference_recommender_mixin import Phase, ModelLatencyThreshold
  from sagemaker.parameter import CategoricalParameter
  import logging
label_desc: Use image node_id 14 for calling a global function with example usage: test_deploy_deployment_recommendation_id_with_model(created_base_model, sagemaker_session) without return types