class_docstr: AWS Inferentia and Trainium accelerators.
class_docstr_tok: ["AWS","Inferentia","and","Trainium","accelerators","."]
docstr: Set the NEURON_RT_VISIBLE_CORES environment variable based on
  given visible_neuron_core_ids.
  
  Args:
      visible_neuron_core_ids (List[str]): List of int representing core IDs.
docstr_tok: ["Set","the","NEURON_RT_VISIBLE_CORES","environment","variable","based","on","given","visible_neuron_core_ids",".","Args",":","visible_neuron_core_ids","(","List","[","str","]",")",":","List","of","int","representing","core","IDs","."]
code: def set_current_process_visible_accelerator_ids(
      visible_neuron_core_ids: List[str],
  ) -> None:
      """Set the NEURON_RT_VISIBLE_CORES environment variable based on
      given visible_neuron_core_ids.
  
      Args:
          visible_neuron_core_ids (List[str]): List of int representing core IDs.
      """
      if os.environ.get(NOSET_AWS_NEURON_RT_VISIBLE_CORES_ENV_VAR):
          return
  
      os.environ[
          NeuronAcceleratorManager.get_visible_accelerator_ids_env_var()
      ] = ",".join([str(i) for i in visible_neuron_core_ids])
  
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 7 for calling the NeuronAcceleratorManager obj's underlying member method code with example usage: obj.set_current_process_visible_accelerator_ids(visible_neuron_core_ids) without return types