code: def test_get_current_process_visible_accelerator_ids(
      monkeypatch, shutdown_only
  ):
      monkeypatch.setenv("ASCEND_RT_VISIBLE_DEVICES", "0,1,2")
      assert (
          Accelerator.get_current_process_visible_accelerator_ids()
          == ["0", "1", "2"]
      )
  
      monkeypatch.delenv("ASCEND_RT_VISIBLE_DEVICES")
      assert (
          Accelerator.get_current_process_visible_accelerator_ids()
          is None
      )
  
      monkeypatch.setenv("ASCEND_RT_VISIBLE_DEVICES", "")
      assert (
          Accelerator.get_current_process_visible_accelerator_ids()
          == []
      )
  
      monkeypatch.setenv("ASCEND_RT_VISIBLE_DEVICES", "NoDevFiles")
      assert (
          Accelerator.get_current_process_visible_accelerator_ids()
          == []
      )
  
file_path: ray/python/ray/tests/accelerators/test_npu.py
imports: import os
  import sys
  import pytest
  from unittest.mock import patch
  import ray
  from ray._private.accelerators import NPUAcceleratorManager
label_desc: Use image node_id 7 for calling a global function with example usage: test_get_current_process_visible_accelerator_ids(monkeypatch, shutdown_only) without return types