code: def test_get_current_process_visible_accelerator_ids(monkeypatch):
      monkeypatch.setenv("ROCR_VISIBLE_DEVICES", "0,1,2")
      assert AMDGPUAcceleratorManager.get_current_process_visible_accelerator_ids() == [
          "0",
          "1",
          "2",
      ]
  
      monkeypatch.setenv("ROCR_VISIBLE_DEVICES", "0,2,7")
      assert AMDGPUAcceleratorManager.get_current_process_visible_accelerator_ids() == [
          "0",
          "2",
          "7",
      ]
  
      monkeypatch.setenv("ROCR_VISIBLE_DEVICES", "")
      assert (
          AMDGPUAcceleratorManager.get_current_process_visible_accelerator_ids()
          == []
      )
  
      del os.environ["ROCR_VISIBLE_DEVICES"]
      assert (
          AMDGPUAcceleratorManager.get_current_process_visible_accelerator_ids()
          is None
      )
  
file_path: ray/python/ray/tests/accelerators/test_amd_gpu.py
imports: import os
  import sys
  import pytest
  from unittest.mock import patch
  import ray
  from ray._private.accelerators import AMDGPUAcceleratorManager
  from ray._private.accelerators import get_accelerator_manager_for_resource
label_desc: Use image node_id 4 for calling a global function with example usage: test_get_current_process_visible_accelerator_ids(monkeypatch) without return types