class_docstr: A class to load, modify, and display the StreamAlertCLI Config
docstr: Write the current config in memory to disk
docstr_tok: ["Write","the","current","config","in","memory","to","disk"]
code: def write(self):
      """Write the current config in memory to disk"""
  
      # Write loaded configuration files
      def format_path(parts):
          return "{}.json".format(os.path.join(*parts))
  
      for config_key in self.config:
          path_parts = [self.config_path, config_key]
          if config_key == "clusters":
              # Write loaded cluster files
              for cluster_key in self.config["clusters"]:
                  parts = path_parts + [cluster_key]
                  self._config_writer(
                      format_path(parts),
                      self.config["clusters"][cluster_key],
                  )
          elif config_key != "logs":
              self._config_writer(
                  format_path(path_parts), self.config[config_key]
              )
  
imports: import json
  import os
  import re
  import shutil
  import string
  import tempfile
  from streamalert.apps import StreamAlertApp
  from streamalert.shared import CLUSTERED_FUNCTIONS, config, metrics
  from streamalert.shared.logger import get_logger
  from streamalert_cli.terraform import TERRAFORM_FILES_PATH
  from streamalert_cli.apps.helpers import save_app_auth_info
  from streamalert_cli.helpers import continue_prompt
label_desc: Use image node_id 25 for calling the CLIConfig obj's underlying member method code with example usage: obj.write() and returns: str