code: def _write_dict_to_json(filename, existing_content):
      """Write a Python dictionary to a json file.
  
      Args:
          filename (str): Name of the target json file.
          existing_content (dict): Dictionary to be written to the json file.
      """
      with open(filename, "w") as f:
          json.dump(existing_content, f, sort_keys=True, indent=4)
  
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 2 for calling a global function with example usage: _write_dict_to_json(filename, existing_content) without return types