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):
          raise ValueError(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.nn.layer import Layer
  from zoo.common import JTensor
  from zoo.common.nncontext import getOrCreateSparkContext
  from zoo.common.utils import callZooFunc
  from zoo.feature.image import ImageSet
  from zoo.tfpark.tf_dataset import TFImageDataset, TFDataset
  import logging
  from zoo.util.utils import to_sample_rdd
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