code: def get_sess_config(gpu_str=None):
      """generate a session config proto"""
      config = tf.ConfigProto()
  
      # pylint: disable=no-member
      if gpu_str is None:
          config.gpu_options.visible_device_list = ""
      else:
          config.gpu_options.visible_device_list = gpu_str
          config.gpu_options.allow_growth = True
      return config
  
file_path: delta/delta/utils/model.py
imports: import os
  import numpy
  import hurry.filesize
  from absl import logging
  import delta.compat
  from tensorflow.python.framework import graph_util
label_desc: Use image node_id 5 for calling a global function with example usage: get_sess_config(gpu_str) and returns: config