class_docstr: Intel GPU accelerators.
class_docstr_tok: ["Intel","GPU","accelerators","."]
docstr: Get the name of first Intel GPU. (supposed only one GPU type on a node)
  Example:
      name: 'Intel(R) Data Center GPU Max 1550'
      return name: 'Intel-GPU-Max-1550'
  Returns:
      A string representing the name of Intel GPU type.
docstr_tok: ["Get","the","name","of","first","Intel","GPU",".","(","supposed","only","one","GPU","type","on","a","node",")","Example",":","name",":","'Intel","(","R",")","Data","Center","GPU","Max","1550'","return","name",":","'Intel-GPU-Max-1550'","Returns",":","A","string","representing","the","name","of","Intel","GPU","type","."]
code: def get_current_node_accelerator_type() -> Optional[str]:
      """Get the name of first Intel GPU. (supposed only one GPU type on a node)
      Example:
          name: 'Intel(R) Data Center GPU Max 1550'
          return name: 'Intel-GPU-Max-1550'
      Returns:
          A string representing the name of Intel GPU type.
      """
      try:
          import dpctl
      except ImportError:
          dpctl = None
      if dpctl is None:
          return None
  
      accelerator_type = None
      try:
          dev_info = (
              ONEAPI_DEVICE_BACKEND_TYPE
              + ":"
              + ONEAPI_DEVICE_TYPE
              + ":0"
          )
          dev = dpctl.SyclDevice(dev_info)
          accelerator_type = "Intel-GPU-" + "-".join(
              dev.name.split(" ")[-2:]
          )
      except Exception:
          accelerator_type = None
      return accelerator_type
  
file_path: ray/python/ray/_private/accelerators/intel_gpu.py
imports: import os
  import logging
  from typing import Optional, List, Tuple
  from ray._private.accelerators.accelerator import AcceleratorManager
label_desc: Use image node_id 5 for calling the IntelGPUAcceleratorManager obj's underlying member method code with example usage: obj.get_current_node_accelerator_type() and returns: accelerator_type, None