code: def write_file(self):
          '''save config to local file'''
          try:
              with open(self.experiment_file, 'w') as file:
                  json.dump(self.experiments, file)
          except IOError as error:
              print('Error:', error)
              returf write_file(self):
          '''save config to local file'''
          try:
              with open(self.experiment_file, 'w') as file:
                  json.dump(self.experiments, file)
          except IOError as error:
              print('Error:', error)
              return
docs: save config to local file