code: def test_exp_save_after_commit(tmp_dir, dvc, scm):
      setup_stage(tmp_dir, dvc, scm)
      baseline = scm.get_rev()
      dvc.experiments.save(name="exp-1", force=True)
  
      tmp_dir.scm_gen({"new_file": "new_file"}, commit="new baseline")
      baseline_new = scm.get_rev()
      dvc.experiments.save(name="exp-2", force=True)
  
      all_exps = dvc.experiments.ls(all_commits=True)
      assert all_exps[baseline][0][0] == "exp-1"
      assert all_exps[baseline_new][0][0] == "exp-2"
  
file_path: dvc/tests/func/experiments/test_save.py
imports: import pytest
  from funcy import first
  from dvc.repo.experiments.exceptions import ExperimentExistsError, InvalidArgumentError
  from dvc.repo.experiments.utils import exp_refs_by_rev
  from dvc.scm import resolve_rev
label_desc: Use image node_id 6 for calling a global function with example usage: test_exp_save_after_commit(tmp_dir, dvc, scm) without return types