code: def _process_session_config(session_config):
      import tensorflow as tf
  
      if session_config is not None:
          invalidInputError(
              isinstance(session_config, tf.ConfigProto),
              "session_config should be a tf.ConfigProto",
          )
          session_config.use_per_session_threads = True
      return session_config
  
imports: import json
  import logging
  import os
  import sys
  import tempfile
  from bigdl.dllib.nn.criterion import Criterion
  from bigdl.dllib.nn.layer import Layer
  from bigdl.dllib.optim.optimizer import MaxEpoch, EveryEpoch
  from bigdl.dllib.utils.common import to_list, JavaValue
  from bigdl.dllib.utils.file_utils import callZooFunc
  from bigdl.dllib.feature.common import FeatureSet
  from bigdl.dllib.keras.engine.topology import to_bigdl_metric, Loss, OptimMethod
  from bigdl.dllib.net.utils import find_placeholders, to_bigdl_optim_method, find_tensors
  from bigdl.dllib.estimator.estimator import Estimator
  from bigdl.dllib.utils import nest
  from bigdl.dllib.utils.triggers import EveryEpoch
  from bigdl.dllib.utils.triggers import ZooTrigger
  from bigdl.orca.tfpark.tf_dataset import TFNdarrayDataset, check_data_compatible
  from bigdl.orca.tfpark.tf_dataset import _standarize_feature_label_dataset
  from bigdl.dllib.utils.log4Error import *
label_desc: Use image node_id 3 for calling the TFModel obj's underlying member method code with example usage: obj._process_session_config(session_config) and returns: session_config