code: def test_what_latest_packages():
      # pip install requirements-parser
      import requirements
      import glob
  
      for req_name in ["requirements.txt"] + glob.glob(
          "reqs_optional/req*.txt"
      ):
          print("\n File: %s" % req_name, flush=True)
          with open(req_name, "rt") as fd:
              for req in requirements.parse(fd):
                  from importlib.metadata import version
  
                  try:
                      current_version = version(req.name)
                      latest_version = get_version(req.name)
                      if str(current_version) != str(latest_version):
                          print(
                              "%s: %s -> %s"
                              % (
                                  req.name,
                                  current_version,
                                  latest_version,
                              ),
                              flush=True,
                          )
                  except Exception as e:
                      print("Exception: %s" % str(e), flush=True)
  
file_path: h2ogpt/tests/test_requirements.py
imports: import pkg_resources
  from pkg_resources import DistributionNotFound, VersionConflict
  from src.utils import remove
  from tests.utils import wrap_test_forked
  import requests
  import json
label_desc: Use image node_id 5 for calling a global function with example usage: test_what_latest_packages() without return types