class_docstr: AWS Inferentia and Trainium accelerators.
class_docstr_tok: ["AWS","Inferentia","and","Trainium","accelerators","."]
code: def get_current_process_visible_accelerator_ids() -> (
      Optional[List[str]]
  ):
      neuron_visible_cores = os.environ.get(
          NeuronAcceleratorManager.get_visible_accelerator_ids_env_var(),
          None,
      )
  
      if neuron_visible_cores is None:
          return None
  
      if neuron_visible_cores == "":
          return []
  
      return list(neuron_visible_cores.split(","))
  
file_path: ray/python/ray/_private/accelerators/neuron.py
imports: import os
  import sys
  import json
  import logging
  import subprocess
  from typing import Optional, List, Tuple
  from ray._private.accelerators.accelerator import AcceleratorManager
label_desc: Use image node_id 3 for calling the NeuronAcceleratorManager obj's underlying member method code with example usage: obj.get_current_process_visible_accelerator_ids() and returns: list, None, list