code: def convert_json_config_to_string(config):
      """Helper function to convert the dictionary config to a string.
  
      Calling eval on this string should result in the original dictionary.
  
      Args:
          config (dict): The config to be converted to a string.
  
      Returns:
          str: The config dictionary formatted as a string.
  
      """
      json_string = "{"
      for key, value in config.items():
          json_string += _convert_key_and_value(key, value)
      json_string += "}"
      return json_string
  
file_path: sagemaker-python-sdk/src/sagemaker/debugger/utils.py
imports: from __future__ import absolute_import
  import re
  from datetime import datetime
  from enum import Enum
label_desc: Use image node_id 2 for calling a global function with example usage: convert_json_config_to_string(config) and returns: json_string