code: def get_requirements(kind, metayaml_file):
      assert kind in {"build", "test"}
  
      assert os.path.isfile(metayaml_file), (
          "Cannot find file " + metayaml_file
      )
  
      with open(metayaml_file, "rt") as y:
          yaml = parse_yaml(y.read())
          if kind == "build":
              return yaml["requirements"]["build"]
          if kind == "test":
              return (
                  yaml["requirements"]["run"]
                  + yaml["requirements"]["test"]
              )
  
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 2 for calling a global function with example usage: get_requirements(kind, metayaml_file) and returns: yaml, unknown