code: def get_realtime_recommendation_id(recommendation_list):
      """Search recommendation based on recommendation id"""
      next(
          (
              rec["RecommendationId"]
              for rec in recommendation_list
              if "InstanceType" in rec
          ),
          None,
      )
  
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 16 for calling a global function with example usage: get_realtime_recommendation_id(recommendation_list) without return types