code: def raw_metrics(info):
      metrics_page = "localhost:{}".format(info["metrics_export_port"])
      print("Fetch metrics from", metrics_page)
      res = fetch_prometheus_metrics([metrics_page])
      return res
  
file_path: ray/python/ray/tests/test_resource_metrics.py
imports: from collections import defaultdict
  import os
  import pytest
  import ray
  from ray._private.test_utils import fetch_prometheus_metrics, run_string_as_driver_nonblocking, wait_for_condition
label_desc: Use image node_id 1 for calling a global function with example usage: raw_metrics(info) and returns: res