code: def __init__(self, filepath, initial_dict={}):
      self.filepath = filepath
      # Ensure filepath directories exist
      directory = os.path.dirname(filepath)
      if not os.path.exists(directory):
          os.makedirs(directory)
      # save initial dictionary
      if initial_dict:
          self.to_file(initial_dict)
      # keep file in memory until a write occurs
      self.in_memory_settings = False
  
file_path: datmo/datmo/core/util/json_store.py
imports: import os
  import json
  import yaml
  from io import open
  from datmo.core.util.exceptions import SaveSettingError, FileIOError
label_desc: Use image node_id 1 to create a new JSONStore object  with example: obj = JSONStore(filepath, initial_dict)