class_docstr: AMD GPU accelerators.
class_docstr_tok: ["AMD","GPU","accelerators","."]
code: def get_current_node_accelerator_type() -> Optional[str]:
      try:
          if sys.platform.startswith("linux"):
              amd_pci_ids = AMDGPUAcceleratorManager._get_amd_pci_ids()
              if amd_pci_ids is None:
                  return None
              return AMDGPUAcceleratorManager._gpu_name_to_accelerator_type(
                  amd_pci_ids["card0"]["GPU ID"]
              )
      except Exception:
          return None
  
file_path: ray/python/ray/_private/accelerators/amd_gpu.py
imports: import os
  import sys
  import logging
  import subprocess
  from typing import Optional, List, Tuple, Dict, Any
  from ray._private.accelerators.accelerator import AcceleratorManager
label_desc: Use image node_id 5 for calling the AMDGPUAcceleratorManager obj's underlying member method code with example usage: obj.get_current_node_accelerator_type() and returns: AMDGPUAcceleratorManager, None, None