code: def get_metadata(package_name: str) -> DictConfig:
      url = f"https://pypi.org/pypi/{package_name}/json"
      with requests.get(url, timeout=10) as response:
          ret = OmegaConf.create(response.content.decode("utf-8"))
      response.close()
      assert isinstance(ret, DictConfig)
      return 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 1 for calling a global function with example usage: get_metadata(package_name) and returns: ret