docstr: Create a TFNet from an exported folder produced by `export_tf`
  :param folder: the folder the TensorFlow model exported to
  :param tf_session_config: an optional tf.ConfigProto object to
                 set the session config in java side.
                 This config does not necessarily be the same with your current session.
                 E.g. sess_config = tf.ConfigProto(inter_op_parallelism_threads=1,
                                                   intra_op_parallelism_threads=1)
                      net = TFNet.from_session(sess, inputs, outputs, sess_config)
  :return: a TFNet
docstr_tok: ["Create","a","TFNet","from","an","exported","folder","produced","by","`","export_tf","`",":","param","folder",":","the","folder","the","TensorFlow","model","exported","to",":","param","tf_session_config",":","an","optional","tf.ConfigProto","object","to","set","the","session","config","in","java","side",".","This","config","does","not","necessarily","be","the","same","with","your","current","session",".","E.g",".","sess_config","=","tf.ConfigProto","(","inter_op_parallelism_threads=1",",","intra_op_parallelism_threads=1",")","net","=","TFNet.from_session","(","sess",",","inputs",",","outputs",",","sess_config",")",":","return",":","a","TFNet"]
code: def from_export_folder(folder, tf_session_config=None):
      """
      Create a TFNet from an exported folder produced by `export_tf`
      :param folder: the folder the TensorFlow model exported to
      :param tf_session_config: an optional tf.ConfigProto object to
                     set the session config in java side.
                     This config does not necessarily be the same with your current session.
                     E.g. sess_config = tf.ConfigProto(inter_op_parallelism_threads=1,
                                                       intra_op_parallelism_threads=1)
                          net = TFNet.from_session(sess, inputs, outputs, sess_config)
      :return: a TFNet
      """
      if not os.path.isdir(folder):
          invalidInputError(False, folder + " does not exist")
      return TFNet(folder, tf_session_config=tf_session_config)
  
imports: import os
  import sys
  import tempfile
  import numpy
  import six
  from pyspark import RDD
  from bigdl.dllib.nn.layer import Layer
  from bigdl.dllib.utils.file_utils import JTensor
  from bigdl.dllib.nncontext import getOrCreateSparkContext
  from bigdl.dllib.utils.file_utils import callZooFunc
  from bigdl.dllib.feature.image import ImageSet
  from bigdl.orca.tfpark.tf_dataset import TFImageDataset, TFDataset
  import logging
  from bigdl.dllib.utils.utils import to_sample_rdd
  from bigdl.dllib.utils.log4Error import *
label_desc: Use image node_id 5 for calling the TFNet obj's underlying member method code with example usage: obj.from_export_folder(folder, tf_session_config) and returns: TFNet