class_docstr: Nvidia GPU accelerators.
class_docstr_tok: ["Nvidia","GPU","accelerators","."]
code: def _gpu_name_to_accelerator_type(name):
      if name is None:
          return None
      match = NVIDIA_GPU_NAME_PATTERN.match(name)
      return match.group(1) if match else None
  
file_path: ray/python/ray/_private/accelerators/nvidia_gpu.py
imports: import re
  import os
  import logging
  from typing import Optional, List, Tuple
  from ray._private.accelerators.accelerator import AcceleratorManager
label_desc: Use image node_id 6 for calling the NvidiaGPUAcceleratorManager obj's underlying member method code with example usage: obj._gpu_name_to_accelerator_type(name) and returns: unknown, None