code: def check_available(
      current_version: str,
  ) -> Optional[Dict[str, Optional[str]]]:
      package_info = _find_available(current_version)
      if not package_info:
          return None
  
      wandb_module_name = wandb._wandb_module
  
      (
          latest_version,
          pip_prerelease,
          deleted,
          yanked,
          yanked_reason,
      ) = package_info
      upgrade_message = (
          "{} version {} is available!  To upgrade, please run:\n"
          " $ pip install {} --upgrade{}".format(
              wandb_module_name,
              latest_version,
              wandb_module_name,
              " --pre" if pip_prerelease else "",
          )
      )
      delete_message = None
      if deleted:
          delete_message = (
              "{} version {} has been retired!  Please upgrade.".format(
                  wandb_module_name,
                  current_version,
              )
          )
      yank_message = None
      if yanked:
          reason_message = (
              "(%s)  " % yanked_reason if yanked_reason else ""
          )
          yank_message = "{} version {} has been recalled!  {}Please upgrade.".format(
              wandb_module_name,
              current_version,
              reason_message,
          )
  
      # A new version is available!
      return {
          "upgrade_message": upgrade_message,
          "yank_message": yank_message,
          "delete_message": delete_message,
      }
  
imports: from typing import Dict, Optional, Tuple
  import requests
  import wandb
label_desc: Use image node_id 2 for calling a global function with example usage: check_available(current_version) and returns: dict, None