code: def test_check_refetches_each_day(mock_tty, updater, caplog, mocker):
      updater.current = "0.0.8"
      with open(updater.updater_file, "w+", encoding="utf-8") as f:
          json.dump({"version": "0.0.9"}, f)
      fetch = mocker.patch.object(updater, "fetch")
  
      time_value = time.time() + 24 * 60 * 60 + 10
      mock_time = mocker.patch("time.time", return_value=time_value)
  
      caplog.clear()
      with caplog.at_level(logging.INFO, logger="dvc.updater"):
          updater.check()
      assert not caplog.text
      fetch.assert_called_once()
      mock_time.assert_called()
  
file_path: dvc/tests/unit/test_updater.py
imports: import json
  import logging
  import os
  import time
  import pytest
  from dvc import __version__
  from dvc.updater import Updater
  from tests.func.parsing.test_errors import escape_ansi
label_desc: Use image node_id 9 for calling a global function with example usage: test_check_refetches_each_day(mock_tty, updater, caplog, mocker) without return types