code: def get_latest_values(existing_content, scope=None):
      """Get the latest "registries", "py_versions" and "repository" values
  
      Args:
          existing_content (dict): Dictionary of complete framework image information.
          scope (str): Type of the image, required if the target is DLC
              framework (Default: None).
      """
      if scope in existing_content:
          existing_content = existing_content[scope]
      else:
          if "versions" not in existing_content:
              raise ValueError(
                  "Invalid image scope: {}. Valid options: {}.".format(
                      scope, ", ".join(existing_content.key())
                  )
              )
  
      latest_version = list(existing_content["versions"].keys())[-1]
      registries = existing_content["versions"][latest_version].get(
          "registries", None
      )
      py_versions = existing_content["versions"][latest_version].get(
          "py_versions", None
      )
      repository = existing_content["versions"][latest_version].get(
          "repository", None
      )
  
      return registries, py_versions, repository
  
file_path: sagemaker-python-sdk/src/sagemaker/cli/framework_upgrade.py
imports: from __future__ import absolute_import
  import argparse
  import json
  import os
  from sagemaker.image_uris import config_for_framework
label_desc: Use image node_id 1 for calling a global function with example usage: get_latest_values(existing_content, scope) and returns: registries,  py_versions,  repository