code: def get_acts(model, layer_name, obses):
      with tf.Graph().as_default(), tf.Session():
          t_obses = tf.placeholder_with_default(
              obses.astype(np.float32), (None, None, None, None)
          )
          T = render.import_model(model, t_obses, t_obses)
          t_acts = T(layer_name)
          return t_acts.eval()
  
file_path: lucid/lucid/scratch/rl_util/attribution.py
imports: import numpy
  import tensorflow
  import lucid.optvis.render
  import itertools
  from lucid.misc.gradient_override import gradient_override_map
label_desc: Use image node_id 2 for calling a global function with example usage: get_acts(model, layer_name, obses) and returns: t_acts