code: def __gpu_card_indices_from_cuda_visible_devices(self):
      correct_indices = []
  
      # According to CUDA Toolkit specification.
      # https://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html#env-vars
      for gpu_index_str in self.__cuda_visible_devices.split(","):
          gpu_index = int(gpu_index_str)
          if 0 <= gpu_index < self.__gpu_card_count:
              correct_indices.append(gpu_index)
          else:
              break
  
      return list(set(correct_indices))
  
imports: import re
label_desc: Use image node_id 4 for calling the GPUCardIndicesProvider obj's underlying member method code with example usage: obj.__gpu_card_indices_from_cuda_visible_devices() and returns: list