code: def conda_package_to_pip(package):
      """
      Convert a conda package to its pip equivalent.
  
      In most cases they are the same, those are the exceptions:
      - Packages that should be excluded (in `EXCLUDE`)
      - Packages that should be renamed (in `RENAME`)
      - A package requiring a specific version, in conda is defined with a single
        equal (e.g. ``pandas=1.0``) and in pip with two (e.g. ``pandas==1.0``)
      """
      package = re.sub("(?<=[^<>])=", "==", package).strip()
  
      for compare in ("<=", ">=", "=="):
          if compare not in package:
              continue
          pkg, version = package.split(compare, maxsplit=1)
          if pkg in EXCLUDE:
              return
  
          if pkg in RENAME:
              return "".join((RENAME[pkg], compare, version))
  
          break
  
      if package in EXCLUDE:
          return
  
      if package in RENAME:
          return RENAME[package]
  
      return package
  
imports: import argparse
  import re
  import yaml
label_desc: Use image node_id 1 for calling a global function with example usage: conda_package_to_pip(package) and returns: package, RENAME, str