code: def test_invalid_name(dvc, exp_stage):
      dvc.experiments.run(
          exp_stage.addressing, name="test-name", params=["foo=1"]
      )
  
      with pytest.raises(InvalidArgumentError):
          dvc.experiments.rename("invalid*name", "test-name")
  
      with pytest.raises(InvalidArgumentError):
          dvc.experiments.rename("invalid/name", "test-name")
  
file_path: dvc/tests/func/experiments/test_rename.py
imports: import pytest
  from dvc.exceptions import InvalidArgumentError
  from dvc.repo.experiments.exceptions import ExperimentExistsError, UnresolvedExpNamesError
  from dvc.repo.experiments.utils import exp_refs_by_names
label_desc: Use image node_id 4 for calling a global function with example usage: test_invalid_name(dvc, exp_stage) without return types