class_docstr: Maintain experiment list
class_docstr_tok: ["Maintain","experiment","list"]
docstr: save config to local file
docstr_tok: ["save","config","to","local","file"]
code: def write_file(self):
      """save config to local file"""
      try:
          with open(
              self.experiment_file, "w", encoding="utf_8"
          ) as file:
              nni.dump(self.experiments, file, indent=4)
      except IOError as error:
          print("Error:", error)
          return ""
  
file_path: nni/nni/tools/nnictl/config_utils.py
imports: import os
  import sqlite3
  import nni
  from .constants import NNI_HOME_DIR
  from .common_utils import get_file_lock
label_desc: Use image node_id 6 for calling the Experiments obj's underlying member method code with example usage: obj.write_file() and returns: str