code: def test_visible_amd_gpu_type(mock_get_amd_pci_ids, shutdown_only):
      ray.init()
      mock_get_amd_pci_ids.called
      if sys.platform.startswith("linux"):
          assert (
              AMDGPUAcceleratorManager.get_current_node_accelerator_type()
              == "AMD-Instinct-MI300X-OAM"
          )
      else:
          assert (
              AMDGPUAcceleratorManager.get_current_node_accelerator_type()
              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 2 for calling a global function with example usage: test_visible_amd_gpu_type(mock_get_amd_pci_ids, shutdown_only) without return types