code: def get_requirements_from_file(path):
      """Takes a requirements file path and extracts only the package names from it"""
  
      with open(path, "r") as main_f:
          reqs = [
              re.split(pattern, line)[0]
              for line in main_f.readlines()
              if re.split(pattern, line)[0]
          ]
      return reqs
  
file_path: mindsdb/tests/scripts/check_requirements.py
imports: import glob
  import re
  import sys
  import subprocess
  import os
  import json
label_desc: Use image node_id 1 for calling a global function with example usage: get_requirements_from_file(path) and returns: reqs