code: def test_warn_on_outdated_stage(tmp_dir, dvc, local_remote, caplog):
      stage = dvc.run(
          outs=["bar"], cmd="echo bar > bar", name="gen-bar"
      )
      dvc.push()
  
      stage.outs[0].hash_info = HashInfo()
      stage.dump()
  
      with caplog.at_level(logging.WARNING, logger="dvc"):
          caplog.clear()
          assert main(["status", "-c"]) == 0
          expected_warning = (
              "Output 'bar'(stage: 'gen-bar') is missing version info. "
              "Cache for it will not be collected. "
              "Use `dvc repro` to get your pipeline up to date."
          )
  
          assert expected_warning in caplog.text
  
imports: import logging
  import os
  import shutil
  import pytest
  from flaky.flaky_decorator import flaky
  import dvc_data
  from dvc.cli import main
  from dvc.exceptions import CheckoutError
  from dvc.repo.open_repo import clean_repos
  from dvc.stage.exceptions import StageNotFound
  from dvc.testing.remote_tests import TestRemote
  from dvc.utils.fs import remove
  from dvc_data.hashfile.db import HashFileDB
  from dvc_data.hashfile.db.local import LocalHashFileDB
  from dvc_data.hashfile.hash_info import HashInfo
label_desc: Use image node_id 3 for calling a global function with example usage: test_warn_on_outdated_stage(tmp_dir, dvc, local_remote, caplog) without return types