code: def parse_requirements(filename):
      """
      Parse a requirements pip file returning the list of required packages. It exclude commented lines and --find-links directives.
  
      Args:
          filename: pip requirements requirements
  
      Returns:
          list of required package with versions constraints
  
      """
      with open(filename) as file:
          parsed_requirements = file.read().splitlines()
      parsed_requirements = [
          line.strip()
          for line in parsed_requirements
          if not (
              (line.strip()[0] == "#")
              or line.strip().startswith("--find-links")
          )
      ]
      return parsed_requirements
  
imports: import os
  import re
  from io import open
  from setuptools import find_packages, setup
label_desc: Use image node_id 1 for calling a global function with example usage: parse_requirements(filename) and returns: parsed_requirements