class_docstr: A wrapper around a Variable that makes it picklable.
  
  The name of the Variable will not be reliable, only the value. Models
  intended to be picklable should identify variables by referencing
  Python objects rather than by using TensorFlow's names.
  
  TensorFlow Variables have different values associated with each Session.
  For this class, the value associated with the default Session will be used
  for both saving and loading, so both operations require that a default
  Session has been selected.
  
  Pickle is not secure. Unpickle only files you made yourself.
  
  See cleverhans_tutorials/mnist_tutorial_picklable.py for examples of a
  complete model training, pickling, and unpickling process using
  PicklableVariable.
  
  See cleverhans.picklable_model for models built using PicklableVariable.
class_docstr_tok: ["A","wrapper","around","a","Variable","that","makes","it","picklable",".","The","name","of","the","Variable","will","not","be","reliable",",","only","the","value",".","Models","intended","to","be","picklable","should","identify","variables","by","referencing","Python","objects","rather","than","by","using","TensorFlow","'s","names",".","TensorFlow","Variables","have","different","values","associated","with","each","Session",".","For","this","class",",","the","value","associated","with","the","default","Session","will","be","used","for","both","saving","and","loading",",","so","both","operations","require","that","a","default","Session","has","been","selected",".","Pickle","is","not","secure",".","Unpickle","only","files","you","made","yourself",".","See","cleverhans_tutorials\/mnist_tutorial_picklable.py","for","examples","of","a","complete","model","training",",","pickling",",","and","unpickling","process","using","PicklableVariable",".","See","cleverhans.picklable_model","for","models","built","using","PicklableVariable","."]
code: def __getstate__(self):
      sess = tf.get_default_session()
      if sess is None:
          raise RuntimeError(
              "PicklableVariable requires a default "
              "TensorFlow session"
          )
      return {"var": sess.run(self.var)}
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import warnings
  import joblib
  import tensorflow
  from cleverhans.model import Model
  from cleverhans.utils import ordered_union
  from cleverhans.utils import safe_zip
label_desc: Use image node_id 2 for calling the PicklableVariable obj's underlying member method code with example usage: obj.__getstate__() and returns: dict