code: def test_save_missing(dvc, mocker):
      stage = Stage(dvc)
      out = Output(stage, "path", cache=False)
      mocker.patch.object(out.fs, "exists", return_value=False)
      with pytest.raises(out.DoesNotExistError):
          out.save()
  
file_path: dvc/tests/unit/output/test_output.py
imports: import logging
  import os
  import pytest
  from funcy import first
  from voluptuous import MultipleInvalid, Schema
  from dvc.fs import RemoteMissingDepsError
  from dvc.ignore import _no_match
  from dvc.output import CHECKSUM_SCHEMA, Output
  from dvc.stage import Stage
  from dvc.utils.fs import remove
label_desc: Use image node_id 1 for calling a global function with example usage: test_save_missing(dvc, mocker) without return types