code: def setup_requirements(
      requirements_path, module_names, conda_format=False
  ):
      module_names = set(module_names)
      module_lines = read_requirements(
          requirements_path,
          conda_format=conda_format,
          filter_names=module_names,
      )
  
      if len(set(module_lines)) != len(module_names):
          raise AssertionError(
              "Missing requirements. Looking for %s, but found %s."
              % (module_names, module_lines)
          )
      return module_lines
  
imports: from __future__ import print_function
  import os
  import re
  import sys
  from operator import lt, gt, eq, le, ge
  from os.path import abspath, dirname, join
  from distutils.version import StrictVersion
  from setuptools import Extension, find_packages, setup
  import versioneer
label_desc: Use image node_id 7 for calling a global function with example usage: setup_requirements(requirements_path, module_names, conda_format) and returns: module_lines