code: def test_broken_dvcyaml_extra_field(tmp_dir, dvc, bad_dvcyaml):
      (tmp_dir / "dvc.yaml").dump(bad_dvcyaml)
  
      with pytest.raises(YAMLValidationError):
          tmp_dir.dvc.artifacts.read()
  
file_path: dvc/tests/func/artifacts/test_artifacts.py
imports: import logging
  import os
  from copy import deepcopy
  import pytest
  from dvc.annotations import Artifact
  from dvc.exceptions import ArtifactNotFoundError, InvalidArgumentError
  from dvc.repo.artifacts import check_name_format
  from dvc.utils.strictyaml import YAMLSyntaxError, YAMLValidationError
label_desc: Use image node_id 6 for calling a global function with example usage: test_broken_dvcyaml_extra_field(tmp_dir, dvc, bad_dvcyaml) without return types