code: def fetch_pypi_versions() -> list[str]:
      r = requests.get("https://pypi.org/pypi/apache-airflow/json")
      r.raise_for_status()
      all_version = r.json()["releases"].keys()
      released_versions = [
          d for d in all_version if not (("rc" in d) or ("b" in d))
      ]
      return released_versions
  
file_path: airflow/dev/validate_version_added_fields_in_config.py
imports: from __future__ import annotations
  import functools
  import sys
  from pathlib import Path
  from pprint import pprint
  import requests
  import semver
  import yaml
  from packaging import version
label_desc: Use image node_id 1 for calling a global function with example usage: fetch_pypi_versions() and returns: released_versions