code: def get_required_packages(requirement_files: list[str]) -> list[str]:
      """Get packages from requirements.txt file.
  
      This function returns list of required packages from requirement files.
  
      Args:
          requirement_files (list[str]): txt files that contains list of required
              packages.
  
      Example:
          >>> get_required_packages(requirement_files=["openvino"])
          ['onnx>=1.8.1', 'networkx~=2.5', 'openvino-dev==2021.4.1', ...]
  
      Returns:
          list[str]: List of required packages
      """
  
      required_packages: list[str] = []
  
      for requirement_file in requirement_files:
          with open(
              f"requirements/{requirement_file}.txt", encoding="utf8"
          ) as file:
              for line in file:
                  package = line.strip()
                  if package and not package.startswith(("#", "-f")):
                      required_packages.append(package)
  
      return required_packages
  
file_path: anomalib/setup.py
imports: from __future__ import annotations
  from importlib.util import module_from_spec, spec_from_file_location
  from pathlib import Path
  from types import ModuleType
  from setuptools import find_packages, setup
label_desc: Use image node_id 3 for calling a global function with example usage: get_required_packages(requirement_files) and returns: required_packages