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 resource limit for Advanced job
docstr_tok: ["Bundle","right_size","(",")","parameters","into","a","resource","limit","for","Advanced","job"]
code: def _convert_to_resource_limit_json(
      self, max_tests: int, max_parallel_tests: int
  ):
      """Bundle right_size() parameters into a resource limit for Advanced job"""
      if not max_tests and not max_parallel_tests:
          return None
      resource_limit = {}
      if max_tests:
          resource_limit["MaxNumberOfTests"] = max_tests
      if max_parallel_tests:
          resource_limit["MaxParallelOfTests"] = max_parallel_tests
      return resource_limit
  
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 7 for calling the InferenceRecommenderMixin obj's underlying member method code with example usage: obj._convert_to_resource_limit_json(max_tests, max_parallel_tests) and returns: resource_limit, None