code: def test_requirements(kind, metayaml_file):
      assert kind in {"build", "test"}
      installed = _installed_packages()
      requirements = get_requirements(kind, metayaml_file)
      messages = []
      for req in requirements:
          module, version = (req + " ").split(" ", 1)
          if module == "python":
              continue
          if version:
              assert version.startswith(">="), (
                  "Unexpected version spec: %s" % version
              )
              version = version[2:].strip()
              msg = test_module(module, version, installed)
          else:
              msg = test_module(module, "0", installed)
          if msg:
              messages.append(msg)
      return messages
  
file_path: h2o-3/h2o-py/scripts/verify_requirements.py
imports: import argparse
  import os
  import re
  import sys
label_desc: Use image node_id 4 for calling a global function with example usage: test_requirements(kind, metayaml_file) and returns: messages