code: def test_dvcfile_try_dumping_parametrized_stage(
      tmp_dir, dvc, data, name
  ):
      (tmp_dir / "dvc.yaml").dump(
          {"stages": data, "vars": [{"foo": "foobar"}]}
      )
  
      stage = dvc.stage.load_one(name=name)
      dvcfile = stage.dvcfile
  
      with pytest.raises(ParametrizedDumpError) as exc:
          dvcfile.dump(stage)
  
      assert (
          str(exc.value)
          == f"cannot dump a parametrized stage: '{name}'"
      )
  
imports: import textwrap
  import pytest
  from dvc.annotations import Annotation
  from dvc.dvcfile import LOCK_FILE, PROJECT_FILE, ParametrizedDumpError, SingleStageFile, load_file
  from dvc.stage.exceptions import StageFileDoesNotExistError
  from dvc.stage.loader import StageNotFound
  from dvc.utils.strictyaml import YAMLValidationError
label_desc: Use image node_id 19 for calling a global function with example usage: test_dvcfile_try_dumping_parametrized_stage(tmp_dir, dvc, data, name) without return types