code: def generate_requirements_txt_content(requirements_yaml):
      requirement_strs = []
      for package_entry in requirements_yaml.values():
          pip_release = package_entry["pip_release"]
          version_specs = []
  
          extras = (
              f"[{','.join(extras)}]"
              if (extras := package_entry.get("extras"))
              else ""
          )
  
          max_major_version = package_entry["max_major_version"]
          version_specs += [f"<{max_major_version + 1}"]
  
          min_version = package_entry.get("minimum")
          version_specs += [f">={min_version}"] if min_version else []
  
          unsupported_versions = package_entry.get("unsupported", [])
          version_specs += [
              f"!={version}" for version in unsupported_versions
          ]
  
          markers = package_entry.get("markers")
          markers = f"; {markers}" if markers else ""
  
          requirement_str = (
              f"{pip_release}{extras}{','.join(version_specs)}{markers}"
          )
          requirement_strs.append(requirement_str)
  
      return "\n".join(requirement_strs)
  
imports: import argparse
  import sys
  import yaml
label_desc: Use image node_id 3 for calling a global function with example usage: generate_requirements_txt_content(requirements_yaml) and returns: str