code: def retry_and_back_off(right_size_fn):
      tot_retries = 3
      retries = 1
      while retries <= tot_retries:
          try:
              return right_size_fn
          except ClientError as e:
              if e.response["Error"]["Code"] == "ThrottlingException":
                  retries += 1
                  time.sleep(5 * retries)
  
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 1 for calling a global function with example usage: retry_and_back_off(right_size_fn) and returns: right_size_fn