code: def get_latest_package_version(package_name):
      try:
          url = f"https://pypi.org/pypi/{package_name}/json"
          response = requests.get(url, timeout=10)
          response.raise_for_status()
          package_info = response.json()
          return package_info["info"]["version"]
      except requests.exceptions.RequestException as e:
          print(
              f"Error: Failed to fetch package information for {package_name}."
          )
          return None
  
imports: import os
  import subprocess
  import sys
  import requests
label_desc: Use image node_id 1 for calling a global function with example usage: get_latest_package_version(package_name) and returns: package_info, None