class_docstr: Class to use instead of lambda.
  lambda is affected by the change of x,
  so _stateful_lambda(x)() output x at the time of definition.
class_docstr_tok: ["Class","to","use","instead","of","lambda",".","lambda","is","affected","by","the","change","of","x",",","so","_stateful_lambda","(","x",")","(",")","output","x","at","the","time","of","definition","."]
code: def __init__(self, x):
      self.x = x
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import six
  import tensorflow
  import numpy
  from collections import OrderedDict
  from edward.inferences.monte_carlo import MonteCarlo
  from edward.models import Empirical, RandomVariable
  from edward.util import check_latent_vars, copy
label_desc: Use image node_id 1 to create a new _stateful_lambda object  with example: obj = _stateful_lambda(x)