code: def tmp_global_dir(mocker, tmp_path):
      """
      Fixture to prevent modifying the actual global config
      """
      mocker.patch(
          "dvc.config.Config.get_dir", return_value=str(tmp_path)
      )
  
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 1 for calling a global function with example usage: tmp_global_dir(mocker, tmp_path) without return types