code: def main():
      """Parse command line arguments, call corresponding methods."""
      parser = argparse.ArgumentParser(
          description="Framework upgrade tool."
      )
      parser.add_argument(
          "--framework",
          required=True,
          help="Name of the framework (e.g. tensorflow, mxnet, etc.)",
      )
      parser.add_argument(
          "--short-version",
          help="Abbreviated framework version (e.g. 2.0)",
      )
      parser.add_argument(
          "--full-version", help="Full framework version (e.g. 2.0.1)"
      )
      parser.add_argument(
          "--processors", help="Suppoted processors (e.g. cpu, gpu)"
      )
      parser.add_argument(
          "--py-versions",
          help="Supported Python versions (e.g. py3,py37)",
      )
      parser.add_argument(
          "--scope",
          help="Scope for the Algorithm image (e.g. inference, training)",
      )
      parser.add_argument(
          "--tag-prefix",
          help="Tag prefix of the Algorithm image (e.g. ray-0.8.5-torch)",
      )
      parser.add_argument(
          "--region", help="New region to be added (e.g. us-west-2)"
      )
      parser.add_argument(
          "--account", help="Registry account of new region"
      )
  
      args = parser.parse_args()
  
      content = config_for_framework(args.framework)
  
      if args.region or args.account:
          if (
              args.region
              and not args.account
              or args.account
              and not args.region
          ):
              raise ValueError(
                  "--region and --account must be used together to expand region."
              )
          add_region(content, args.region, args.account)
      else:
          add_version(
              content,
              args.short_version,
              args.full_version,
              args.scope,
              args.processors,
              args.py_versions,
              args.tag_prefix,
          )
  
      file = os.path.join(
          IMAGE_URI_CONFIG_DIR, "{}.json".format(args.framework)
      )
      _write_dict_to_json(file, content)
  
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 7 for calling a global function with example usage: main() without return types