code: def updater(tmp_path, tmp_global_dir):
      return Updater(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 3 for calling a global function with example usage: updater(tmp_path, tmp_global_dir) and returns: Updater