code: def get_spark_task_assigned_physical_gpus(gpu_addr_list):
      if "CUDA_VISIBLE_DEVICES" in os.environ:
          visible_cuda_dev_list = [
              int(dev.strip())
              for dev in os.environ["CUDA_VISIBLE_DEVICES"].split(",")
          ]
          return [visible_cuda_dev_list[addr] for addr in gpu_addr_list]
      else:
          return gpu_addr_list
  
imports: import subprocess
  import os
  import sys
  import random
  import threading
  import collections
  import logging
  import time
label_desc: Use image node_id 19 for calling a global function with example usage: get_spark_task_assigned_physical_gpus(gpu_addr_list) and returns: unknown, gpu_addr_list