code: def test_exp_save(tmp_dir, dvc, scm):
      tmp_dir.scm_gen({"foo": "foo"}, commit="initial")
  
      api.exp_save()
  
      api.exp_save("foo")
      with pytest.raises(
          ExperimentExistsError,
          match="Experiment conflicts with existing experiment 'foo'.",
      ):
          api.exp_save("foo")
      api.exp_save("foo", force=True)
  
imports: import pytest
  from dvc import api
  from dvc.repo.experiments.exceptions import ExperimentExistsError
  from tests.unit.repo.experiments.conftest import exp_stage
label_desc: Use image node_id 1 for calling a global function with example usage: test_exp_save(tmp_dir, dvc, scm) without return types