code: def test_remote_missing_dependency_on_dir_pull(
      tmp_dir, scm, dvc, mocker
  ):
      tmp_dir.dvc_gen(
          {"dir": {"subfile": "file2 content"}}, commit="add dir"
      )
      with dvc.config.edit() as conf:
          conf["remote"]["s3"] = {"url": "s3://bucket/name"}
          conf["core"] = {"remote": "s3"}
  
      remove("dir")
      remove(dvc.cache.local.path)
  
      mocker.patch(
          "dvc.data_cloud.DataCloud.get_remote",
          side_effect=RemoteMissingDepsError(
              dvc.fs, "azure", "azure://", []
          ),
      )
      with pytest.raises(RemoteMissingDepsError):
          dvc.pull()
  
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 5 for calling a global function with example usage: test_remote_missing_dependency_on_dir_pull(tmp_dir, scm, dvc, mocker) without return types