code: def _read_requirements(filename):
      
      with open(filename) as requirements_file:
          contents = requirements_file.read()
      return [line.strip() for line in contents.splitlines() if _is_requirement(line)]
docs: Parses a file for pip installation requirements.