code: def add_region(existing_content, region, account):
      """Add region account to framework/algorithm registries.
  
      Args:
          existing_content (dict): Existing framework/algorithm image uri information read from
              json file.
          region (str): New region to be added to framework/algorithm registries (e.g. us-west-2).
          account (str): Region registry account number.
      """
      if "scope" not in existing_content:
          for scope in existing_content:
              for version in existing_content[scope]["versions"]:
                  existing_content[scope]["versions"][version][
                      "registries"
                  ][region] = account
      else:
          for version in existing_content["versions"]:
              existing_content["versions"][version]["registries"][
                  region
              ] = account
  
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 5 for calling a global function with example usage: add_region(existing_content, region, account) without return types