class_docstr: Intel Habana(HPU) accelerators.
class_docstr_tok: ["Intel","Habana","(","HPU",")","accelerators","."]
docstr: Attempt to detect the HPU family type.
  Returns:
      The device name (GAUDI, GAUDI2) if detected else None.
docstr_tok: ["Attempt","to","detect","the","HPU","family","type",".","Returns",":","The","device","name","(","GAUDI",",","GAUDI2",")","if","detected","else","None","."]
code: def get_current_node_accelerator_type() -> Optional[str]:
      """Attempt to detect the HPU family type.
      Returns:
          The device name (GAUDI, GAUDI2) if detected else None.
      """
      if HPUAcceleratorManager.is_initialized():
          import habana_frameworks.torch.hpu as torch_hpu
  
          return f"Intel-{torch_hpu.get_device_name()}"
      else:
          logging.info("HPU type cannot be detected")
          return None
  
file_path: ray/python/ray/_private/accelerators/hpu.py
imports: import os
  import logging
  from typing import Optional, List, Tuple
  from functools import lru_cache
  from importlib.util import find_spec
  from ray._private.accelerators.accelerator import AcceleratorManager
label_desc: Use image node_id 6 for calling the HPUAcceleratorManager obj's underlying member method code with example usage: obj.get_current_node_accelerator_type() and returns: str, torch_hpu, None