code: def check_alternative_installation(
      install_require, alternative_install_requires
  ):
      """If some version version of alternative requirement installed, return alternative,
      else return main.
      """
      for alternative_install_require in alternative_install_requires:
          try:
              alternative_pkg_name = re.split(
                  r"[!<>=]", alternative_install_require
              )[0]
              get_distribution(alternative_pkg_name)
              return str(alternative_install_require)
          except DistributionNotFound:
              continue
  
      return str(install_require)
  
imports: import re
  from pkg_resources import get_distribution, DistributionNotFound
  from setuptools import setup, find_packages
label_desc: Use image node_id 1 for calling a global function with example usage: check_alternative_installation(install_require, alternative_install_requires) and returns: str, str