code: def get_install_requirements(main_requires, alternative_requires):
      """Iterates over all install requires
      If an install require has an alternative option, check if this option is installed
      If that is the case, replace the install require by the alternative to not install dual package
      """
      install_requires = []
      for main_require in main_requires:
          if main_require in alternative_requires:
              main_require = check_alternative_installation(
                  main_require, alternative_requires.get(main_require)
              )
          install_requires.append(main_require)
  
      return install_requires
  
imports: import re
  from pkg_resources import get_distribution, DistributionNotFound
  from setuptools import setup, find_packages
label_desc: Use image node_id 2 for calling a global function with example usage: get_install_requirements(main_requires, alternative_requires) and returns: install_requires