code: def test_hydra_sweep_prefix_name(tmp_dir, params_repo, dvc):
      prefix = "foo"
      db_values = ["mysql", "postgresql"]
      param = "+db=" + ",".join(db_values)
      dvc.experiments.run(params=[param], queue=True, name=prefix)
      expected_names = [
          f"{prefix}-{i+1}" for i, _ in enumerate(db_values)
      ]
      exp_names = [
          entry.name
          for entry in dvc.experiments.celery_queue.iter_queued()
      ]
      for name, expected in zip(exp_names, expected_names):
          assert name == expected
  
file_path: dvc/tests/func/experiments/test_set_params.py
imports: import pytest
  from dvc.exceptions import InvalidArgumentError
  from tests.func.utils.test_hydra import hydra_setup
label_desc: Use image node_id 5 for calling a global function with example usage: test_hydra_sweep_prefix_name(tmp_dir, params_repo, dvc) without return types