code: def latest_version(package_name):
      """
      Get latest package version from pypi (Hack)
      """
      url = "https://pypi.python.org/pypi/%s/json" % (package_name,)
      versions = []
      try:
          response = urllib.request.urlopen(
              urllib.request.Request(url),
              timeout=1,
          )
          data = json.load(response)
          versions = list(data["releases"].keys())
          versions.sort(key=parse_version)
          return ">={}".format(versions[-1])
      except Exception as e:
          if versions:
              return ">={}".format(versions[-1])
          else:
              print(str(e))
      return ""
  
file_path: vidgear/setup.py
imports: import json
  import platform
  import urllib.request
  from pkg_resources import parse_version
  from distutils.util import convert_path
  from setuptools import setup
label_desc: Use image node_id 2 for calling a global function with example usage: latest_version(package_name) and returns: str, str, str