code: def deepdream(layer):
      """Maximize 'interestingness' at some layer.
  
      See Mordvintsev et al., 2015.
      """
      return lambda T: tf.reduce_mean(T(layer) ** 2)
  
imports: from __future__ import absolute_import, division, print_function
  from decorator import decorator
  import numpy
  import tensorflow
  from lucid.optvis.objectives_util import _dot, _dot_cossim, _extract_act_pos, _make_arg_str, _T_force_NHWC, _T_handle_batch
label_desc: Use image node_id 8 for calling a global function with example usage: deepdream(layer) and returns: function