code: def notify_updates():
      from contextlib import suppress
  
      from dvc.repo import NotDvcRepoError, Repo
  
      with suppress(NotDvcRepoError), Repo() as repo:
          hardlink_lock = repo.config["core"].get(
              "hardlink_lock", False
          )
          updater = Updater(repo.tmp_dir, hardlink_lock=hardlink_lock)
          updater.check()
  
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 for calling a global function with example usage: notify_updates() without return types