class_docstr: Intel GPU accelerators.
class_docstr_tok: ["Intel","GPU","accelerators","."]
code: def get_current_node_num_accelerators() -> int:
      try:
          import dpctl
      except ImportError:
          dpctl = None
      if dpctl is None:
          return 0
  
      num_gpus = 0
      try:
          dev_info = (
              ONEAPI_DEVICE_BACKEND_TYPE + ":" + ONEAPI_DEVICE_TYPE
          )
          context = dpctl.SyclContext(dev_info)
          num_gpus = context.device_count
      except Exception:
          num_gpus = 0
      return num_gpus
  
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 4 for calling the IntelGPUAcceleratorManager obj's underlying member method code with example usage: obj.get_current_node_num_accelerators() and returns: num_gpus, int