class_docstr: Ascend NPU accelerators.
docstr: Get the type of the Ascend NPU on the current node.
  
  Returns:
      A string of the type, such as "Ascend910A", "Ascend910B", "Ascend310P1".
docstr_tok: ["Get","the","type","of","the","Ascend","NPU","on","the","current","node",".","Returns",":","A","string","of","the","type",",","such","as","``","Ascend910A","''",",","``","Ascend910B","''",",","``","Ascend310P1","''","."]
code: def get_current_node_accelerator_type() -> Optional[str]:
      """Get the type of the Ascend NPU on the current node.
  
      Returns:
          A string of the type, such as "Ascend910A", "Ascend910B", "Ascend310P1".
      """
      try:
          import acl
  
          return acl.get_soc_name()
      except Exception:
          logger.exception("Failed to detect NPU type.")
      return None
  
file_path: ray/python/ray/_private/accelerators/npu.py
imports: import os
  import glob
  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 NPUAcceleratorManager obj's underlying member method code with example usage: obj.get_current_node_accelerator_type() and returns: None, acl