code: def _notify(self, latest: str, pkg: Optional[str] = PKG) -> None:
      from dvc.ui import ui
  
      if not ui.isatty():
          return
  
      message = self._get_message(latest, pkg=pkg)
      return ui.error_write(message, styled=True)
  
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 8 for calling the Updater obj's underlying member method code with example usage: obj._notify(latest, pkg) and returns: ui