class_docstr: A mixin class for SageMaker ``Inference Recommender`` that will be extended by ``Model``
class_docstr_tok: ["A","mixin","class","for","SageMaker","``","Inference","Recommender","``","that","will","be","extended","by","``","Model","``"]
docstr: Search recommendation based on recommendation id
docstr_tok: ["Search","recommendation","based","on","recommendation","id"]
code: def _search_recommendation(
      self, recommendation_list, inference_recommendation_id
  ):
      """Search recommendation based on recommendation id"""
      return next(
          (
              rec
              for rec in recommendation_list
              if rec["RecommendationId"] == inference_recommendation_id
          ),
          None,
      )
  
imports: from __future__ import absolute_import
  import logging
  import re
  from typing import List, Dict, Optional
  import sagemaker
  from sagemaker.parameter import CategoricalParameter
label_desc: Use image node_id 12 for calling the InferenceRecommenderMixin obj's underlying member method code with example usage: obj._search_recommendation(recommendation_list, inference_recommendation_id) and returns: next