code: def test_check_update_respect_config(result, updater, mocker):
      mock_check = mocker.patch("dvc.updater.Updater._check")
      mocker.patch.object(updater, "is_enabled", return_value=result)
      updater.check()
      assert result == mock_check.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 7 for calling a global function with example usage: test_check_update_respect_config(result, updater, mocker) without return types