code: def test_plots_modify_not_existing_template(dvc):
      from dvc_render.vega_templates import TemplateNotFoundError
  
      with pytest.raises(TemplateNotFoundError):
          dvc.plots.modify(
              "metric.json",
              props={"template": "not-existing-template.json"},
          )
  
file_path: dvc/tests/func/plots/test_modify.py
imports: import pytest
  from dvc.dvcfile import LOCK_FILE
  from dvc.repo.plots import PropsNotFoundError
  from dvc.utils import relpath
  from tests.utils.plots import get_plot
label_desc: Use image node_id 3 for calling a global function with example usage: test_plots_modify_not_existing_template(dvc) without return types