code: def test_pasre_pg_formatted_resources():
      out = pasre_pg_formatted_resources_to_original(
          {
              "CPU_group_e765be422c439de2cd263c5d9d1701000000": 1,
              "memory": 100,
          }
      )
      assert out == {"CPU": 1, "memory": 100}
  
      out = pasre_pg_formatted_resources_to_original(
          {
              "memory_group_4da1c24ac25bec85bc817b258b5201000000": 100.0,
              "memory_group_0_4da1c24ac25bec85bc817b258b5201000000": 100.0,
              "CPU_group_0_4da1c24ac25bec85bc817b258b5201000000": 1.0,
              "CPU_group_4da1c24ac25bec85bc817b258b5201000000": 1.0,
          }
      )
      assert out == {"CPU": 1, "memory": 100}
  
file_path: ray/python/ray/tests/test_utils.py
imports: import pytest
  import logging
  from ray._private.utils import get_or_create_event_loop, pasre_pg_formatted_resources_to_original, try_import_each_module, get_current_node_cpu_model_name
  from unittest.mock import patch, mock_open
  import sys
label_desc: Use image node_id 4 for calling a global function with example usage: test_pasre_pg_formatted_resources() without return types