code: def get_image_uri(region_name, repo_name, repo_version="1"):
      """Deprecated method. Please use sagemaker.image_uris.retrieve().
  
      Args:
          region_name: name of the region
          repo_name: name of the repo (e.g. xgboost)
          repo_version: version of the repo
  
      Returns:
          the image uri
      """
      renamed_warning("The method get_image_uri")
      return image_uris.retrieve(
          framework=repo_name,
          region=region_name,
          version=repo_version,
      )
  
imports: from __future__ import absolute_import
  import json
  import logging
  import tempfile
  from typing import Union, Optional, Dict
  from six.moves.urllib.parse import urlparse
  from sagemaker import image_uris, s3_utils
  from sagemaker.amazon import validation
  from sagemaker.amazon.hyperparameter import Hyperparameter
  from sagemaker.amazon.common import write_numpy_to_dense_tensor
  from sagemaker.deprecations import renamed_warning
  from sagemaker.estimator import EstimatorBase, _TrainingJob
  from sagemaker.inputs import FileSystemInput, TrainingInput
  from sagemaker.utils import sagemaker_timestamp, check_and_get_run_experiment_config
  from sagemaker.workflow.entities import PipelineVariable
  from sagemaker.workflow.pipeline_context import runnable_by_pipeline
  from sagemaker.workflow import is_pipeline_variable
label_desc: Use image node_id 3 for calling a global function with example usage: get_image_uri(region_name, repo_name, repo_version) and returns: image_uris