code: def __init__(self, tmp_dir, friendly=False, hardlink_lock=False):
      from dvc.lock import make_lock
  
      self.updater_file = os.path.join(tmp_dir, self.UPDATER_FILE)
      self.lock = make_lock(
          self.updater_file + ".lock",
          tmp_dir=tmp_dir,
          friendly=friendly,
          hardlink_lock=hardlink_lock,
      )
      self.current = version.parse(__version__).base_version
  
file_path: dvc/dvc/updater.py
imports: import os
  import time
  from typing import TYPE_CHECKING, Optional
  from packaging import version
  from dvc import PKG, __version__
  from dvc.env import DVC_UPDATER_ENDPOINT
  from dvc.log import logger
label_desc: Use image node_id 1 to create a new Updater object  with example: obj = Updater(tmp_dir, friendly, hardlink_lock)