code: def get_releases(metadata: DictConfig) -> List[Version]:
      ret: List[Version] = []
      for ver, files in metadata.releases.items():
          for file in files:
              if (
                  file.packagetype == "bdist_wheel"
                  and file.yanked is not True
              ):
                  v = parse_version(ver)
                  ret.append(v)
      return sorted(ret)
  
imports: import logging
  import os
  import re
  import shutil
  from dataclasses import dataclass
  from enum import Enum
  from functools import lru_cache
  from pathlib import Path
  from typing import Dict, List, Tuple
  import hydra
  import requests
  from hydra.core.config_store import ConfigStore
  from hydra.test_utils.test_utils import find_parent_dir_containing, run_python_script
  from omegaconf import II, MISSING, SI, DictConfig, OmegaConf
  from packaging.version import Version, parse
label_desc: Use image node_id 2 for calling a global function with example usage: get_releases(metadata) and returns: sorted