code: def test_missing(tmp_dir, dvc, remote):
      tmp_dir.dvc_gen("foo", "foo")
  
      # Remove cache to make foo missing
      remove(dvc.cache.local.path)
  
      api.read("foo")
  
      remove("foo")
  
      with pytest.raises(PathMissingError):
          api.read("foo")
  
imports: import os
  import pytest
  from funcy import first, get_in
  from dvc import api
  from dvc.exceptions import OutputNotFoundError, PathMissingError
  from dvc.testing.api_tests import TestAPI
  from dvc.testing.tmp_dir import make_subrepo
  from dvc.utils.fs import remove
label_desc: Use image node_id 5 for calling a global function with example usage: test_missing(tmp_dir, dvc, remote) without return types