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: Bundle right_size() parameters into a traffic pattern for Advanced job
docstr_tok: ["Bundle","right_size","(",")","parameters","into","a","traffic","pattern","for","Advanced","job"]
code: def _convert_to_traffic_pattern_json(
      self, traffic_type: str, phases: List[Phase]
  ):
      """Bundle right_size() parameters into a traffic pattern for Advanced job"""
      if not phases:
          return None
      return {
          "Phases": [phase.to_json for phase in phases],
          "TrafficType": traffic_type if traffic_type else "PHASES",
      }
  
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 6 for calling the InferenceRecommenderMixin obj's underlying member method code with example usage: obj._convert_to_traffic_pattern_json(traffic_type, phases) and returns: dict, None