code: def test_run_check_ref_format(scm, name, result):
      ref = ExpRefInfo("abc123", name)
      if result:
          check_ref_format(scm, ref)
      else:
          with pytest.raises(InvalidArgumentError):
              check_ref_format(scm, ref)
  
file_path: dvc/tests/unit/repo/experiments/test_utils.py
imports: import re
  import pytest
  from dvc.exceptions import InvalidArgumentError
  from dvc.repo.experiments.refs import EXPS_NAMESPACE, ExpRefInfo
  from dvc.repo.experiments.utils import check_ref_format, gen_random_name, resolve_name, to_studio_params
label_desc: Use image node_id 3 for calling a global function with example usage: test_run_check_ref_format(scm, name, result) without return types