code: def test_get_or_create_event_loop_new_event_loop():
      import warnings
  
      with warnings.catch_warnings():
          # Assert no deprecating warnings raised for python>=3.10
          warnings.simplefilter("error")
          loop = get_or_create_event_loop()
          assert loop is not None, "new event loop should be created."
  
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 2 for calling a global function with example usage: test_get_or_create_event_loop_new_event_loop() without return types