code: def set_cuda_device(cuda_devices):
      if re.findall("\\d", cuda_devices):
          os.environ["CUDA_VISIBLE_DEVICES"] = cuda_devices
          tf.logging.info(
              "set CUDA_VISIBLE_DEVICES to {}".format(cuda_devices)
          )
      else:
          # using Tensorflow default choice
          pass
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import datetime
  import os
  import re
  from functools import partial
  import numpy
  import tensorflow
  from scipy import ndimage
  from six import string_types
label_desc: Use image node_id 15 for calling a global function with example usage: set_cuda_device(cuda_devices) without return types