code: def test_pull_stats(tmp_dir, dvc, capsys, local_remote):
      tmp_dir.dvc_gen({"foo": "foo", "bar": "bar"})
      dvc.push()
      clean(["foo", "bar"], dvc)
      (tmp_dir / "bar").write_text("foobar")
  
      assert main(["pull", "--force"]) == 0
  
      out, _ = capsys.readouterr()
      assert "M\tbar".expandtabs() in out
      assert "A\tfoo".expandtabs() in out
      assert "2 files fetched" in out
      assert "1 file added" in out
      assert "1 file modified" in out
  
      main(["pull"])
      out, _ = capsys.readouterr()
      assert "Everything is up to date." in out
  
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 17 for calling a global function with example usage: test_pull_stats(tmp_dir, dvc, capsys, local_remote) without return types