code: def test_check_fetches_on_invalid_data_format(
      mock_tty, updater, caplog, mocker
  ):
      updater.current = "0.0.5"
      with open(updater.updater_file, "w+", encoding="utf-8") as f:
          f.write('"{"version: "0.0.6"')
      fetch = mocker.patch.object(updater, "fetch")
      caplog.clear()
      with caplog.at_level(logging.INFO, logger="dvc.updater"):
          updater.check()
      assert not caplog.text
      fetch.assert_called_once()
  
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 10 for calling a global function with example usage: test_check_fetches_on_invalid_data_format(mock_tty, updater, caplog, mocker) without return types