code: def in_session(f):
      @functools.wraps(f)
      def newfunc(*args, **kwargs):
          with tf.Session():
              f(*args, **kwargs)
  
      return newfunc
  
imports: import numpy
  import tensorflow
  import copy
  import os
  import functools
  import collections
  import multiprocessing
label_desc: Use image node_id 7 for calling a global function with example usage: in_session(f) and returns: newfunc