code: def persist(self):
          
          # In dryrun mode, without wandb run, we don't
          # save config  on initial load, because the run directory
          # may not be created yet (because we don't know if we're
          # being used in a run context, or as an API).
          # TODO: Defer saving somehow, maybe via an events system
          path = self._config_path()
          if path is None:
              return
          with open(path, "w") as conf_file:
              conf_file.write(str(self))
docs: Stores the current configuration for pushing to W&B