code: def test_check_updates(
      mocker, capsys, updater, current, latest, notify
  ):
      mocker.patch("sys.stdout.isatty", return_value=True)
  
      updater.current = current
      with open(updater.updater_file, "w+", encoding="utf-8") as f:
          json.dump({"version": latest}, f)
  
      updater.check()
      out, err = capsys.readouterr()
      expected_message = (
          f"You are using dvc version {current}; "
          f"however, version {latest} is available.\n"
          if notify
          else ""
      )
  
      assert expected_message in escape_ansi(err)
      assert not out
  
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 8 for calling a global function with example usage: test_check_updates(mocker, capsys, updater, current, latest, notify) without return types