code: def get_prometheus_metrics(
      start_time: float, end_time: float
  ) -> dict:
      try:
          return asyncio.run(
              _get_prometheus_metrics(start_time, end_time)
          )
      except Exception:
          logger.error(
              "Couldn't obtain Prometheus metrics. "
              f"Exception below:\n{traceback.format_exc()}"
          )
          return {}
  
file_path: ray/release/ray_release/command_runner/_prometheus_metrics.py
imports: import asyncio
  import aiohttp
  import os
  import time
  import traceback
  from urllib.parse import quote
  from typing import Optional
  import logging
  import json
  import argparse
label_desc: Use image node_id 1 for calling a global function with example usage: get_prometheus_metrics(start_time, end_time) and returns: asyncio, dict