code: def get_session_conf(config):
      """Get the config for the tensorflow session."""
      tfconf = config["solver"]["run_config"]
      session_conf = tf.ConfigProto(
          allow_soft_placement=tfconf["allow_soft_placement"],
          log_device_placement=tfconf["log_device_placement"],
          intra_op_parallelism_threads=tfconf[
              "intra_op_parallelism_threads"
          ],
          inter_op_parallelism_threads=tfconf[
              "inter_op_parallelism_threads"
          ],
          gpu_options=tf.GPUOptions(
              allow_growth=tfconf["allow_growth"]
          ),
      )
      return session_conf
  
file_path: delta/delta/utils/solver/utils/solver_utils.py
imports: import os
  import re
  from pathlib import Path
  import numpy
  import delta.compat
  from absl import logging
  import shutil
  from delta import utils
  from delta.utils import metrics
label_desc: Use image node_id 3 for calling a global function with example usage: get_session_conf(config) and returns: session_conf