code: def _get_latest_version(self):
      import json
  
      import requests
  
      url = os.environ.get(DVC_UPDATER_ENDPOINT, self.URL)
      logger.debug("Checking updates in %s", url)
      try:
          resp = requests.get(url, timeout=self.TIMEOUT_GET)
          info = resp.json()
      except requests.exceptions.RequestException as exc:
          logger.trace("", exc_info=True)
          logger.debug("Failed to retrieve latest version: %s", exc)
          return
  
      logger.trace(
          "received payload: %s (status=%s)", info, resp.status_code
      )
      with open(self.updater_file, "w+", encoding="utf-8") as fobj:
          logger.trace(
              "Saving latest version info to %s", self.updater_file
          )
          json.dump(info, fobj)
  
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 7 for calling the Updater obj's underlying member method code with example usage: obj._get_latest_version() without return types