code: def test_status_on_pipeline_stages(tmp_dir, dvc, run_copy):
      tmp_dir.dvc_gen("foo", "foo")
      stage = run_copy("foo", "bar", name="copy-foo-bar")
  
      stage.cmd = "  ".join(stage.cmd.split())
      stage.dvcfile._dump_pipeline_file(stage)
      assert dvc.status("copy-foo-bar") == {
          "copy-foo-bar": ["changed command"]
      }
  
      # delete outputs
      (tmp_dir / "bar").unlink()
      assert dvc.status() == {
          "copy-foo-bar": [
              {"changed outs": {"bar": "deleted"}},
              "changed command",
          ]
      }
      (tmp_dir / "foo").unlink()
      assert dvc.status() == {
          "foo.dvc": [{"changed outs": {"foo": "deleted"}}],
          "copy-foo-bar": [
              {"changed deps": {"foo": "deleted"}},
              {"changed outs": {"bar": "deleted"}},
              "changed command",
          ],
      }
  
file_path: dvc/tests/func/test_status.py
imports: import os
  from dvc.cli import main
  from dvc.fs import localfs
label_desc: Use image node_id 5 for calling a global function with example usage: test_status_on_pipeline_stages(tmp_dir, dvc, run_copy) without return types