code: def get_pip_requirements_content(build_metadata):
      template = environment.from_string(
          """
  # DO NOT EDIT: this file is generated from the specification found in the
  # following script to centralize the configuration for CI builds:
  # build_tools/update_environments_and_lock_files.py
  {% for pip_dep in build_metadata['pip_dependencies'] %}
  {{ pip_dep | get_package_with_constraint(build_metadata, uses_pip=True) }}
  {% endfor %}""".strip()
      )
      return template.render(build_metadata=build_metadata)
  
imports: import json
  import logging
  import re
  import shlex
  import subprocess
  import sys
  from importlib.metadata import version
  from pathlib import Path
  import click
  from jinja2 import Environment
  from packaging.version import Version
label_desc: Use image node_id 10 for calling a global function with example usage: get_pip_requirements_content(build_metadata) and returns: template